Stopping running code at a certain point

J

Jack

Hi,
I have a asp page which is pretty long. This consitst of various recordsets.
My intention is to stop execution of a code at a cetain point and test one
value prior to this point. Is there any way to do this? Thanks in advance.
Regards.
 
M

McKirahan

Jack said:
Hi,
I have a asp page which is pretty long. This consitst of various recordsets.
My intention is to stop execution of a code at a cetain point and test one
value prior to this point. Is there any way to do this? Thanks in advance.
Regards.

An "If" statement comes to mind as in:

If item = value Then
' do something
End If

Perhaps a more detailed description of the issue would suggest a different
answer.

What do you mean by "stop execution of the code"?

Will this require user interaction?
 
V

Vic Sowers

Jack said:
Hi,
I have a asp page which is pretty long. This consitst of various
recordsets.
My intention is to stop execution of a code at a cetain point and test one
value prior to this point. Is there any way to do this? Thanks in advance.
Regards.

Try:
Response.End();
after you've completed testing the value.
 
J

Jack

Thanks McKirahan for your answer. Actually, I need to log into the system.
That is the only user interaction. I would like to check couple of values of
variables which are in the middle of the code. Just after this, the code is
giving error. I was wondering if I could open the web page and the code would
run upto this point of extracting the values of couple of variables and not
execute any further which, at this point, if runs, will give me error in the
page. Hope I am clear.
I am going to test Vic's suggestion, to see if that works. Regards.
 
M

McKirahan

Jack said:
Thanks McKirahan for your answer. Actually, I need to log into the system.
That is the only user interaction. I would like to check couple of values of
variables which are in the middle of the code. Just after this, the code is
giving error. I was wondering if I could open the web page and the code would
run upto this point of extracting the values of couple of variables and not
execute any further which, at this point, if runs, will give me error in the
page. Hope I am clear.
I am going to test Vic's suggestion, to see if that works. Regards.

Use
Response.Write(variable_name)
before
Response.End
to view variable_name at the point of termination

If you use it multiple times. use:
Response.Write("<br>variable_name = " & variable_name)
 
J

Jack

Thanks for your input McKirahan. Regards.

McKirahan said:
Use
Response.Write(variable_name)
before
Response.End
to view variable_name at the point of termination

If you use it multiple times. use:
Response.Write("<br>variable_name = " & variable_name)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top