Debug code in ASP 3.0

D

DazedAndConfused

I need to debug the code and get the value of variables in an asp 3.0 page
where the javascript is being processed on the server side (i.e. within <%
%. I can use Response.Write("window.alert(".etc")"); for text messages to
tell me where i am in the code, but I cannot seem to figure out how to
display values of the variables...

Any ideas for a newbie to this?
 
B

Bob Barrows [MVP]

DazedAndConfused said:
I need to debug the code and get the value of variables in an asp
3.0 page where the javascript is being processed on the server side
(i.e. within <% %. I can use Response.Write("window.alert(".etc")");
for text messages to tell me where i am in the code, but I cannot
seem to figure out how to display values of the variables...

Any ideas for a newbie to this?

A few options:
a) Get Visual Studio ... expensive
b) Use Response.Write to write out the values of your variables.
c) Use the technique described here:
http://support.microsoft.com/kb/288965/EN-US/
and here:
http://support.microsoft.com/kb/299986/EN-US/

HTH,
Bob Barrows
 

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,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top