Debugging ASP

  • Thread starter Christoph Brecht
  • Start date
C

Christoph Brecht

Hi there,

I am very new to ASP and I just want to know if there is a possibility to
debug the ASP code like you can do in PHP? Just like in PHP I want to get a
result which tells me whats wrong when the code is executed.

Thanks for help.
Cheers
 
R

Ray at

The server will return back an error and the line number on which the error
occurs.

After setting IE up properly, http://www.aspfaq.com/show.asp?id=2109, try:

Example:

<%
Dim x
x = 123989823
Response.Write CInt(x)
%>

That should return an error on line 4 and it should say something about an
overflow, because an integer variable cannot be that large. Also see
syntactical (?) errors like:

<% Response.Write "Hi %>
or
<% Response.Write "kjasdf" & %>


Ray at work
 
C

Christoph Brecht

Ray at said:
The server will return back an error and the line number on which the error
occurs.

After setting IE up properly, http://www.aspfaq.com/show.asp?id=2109, try:

Example:

<%
Dim x
x = 123989823
Response.Write CInt(x)
%>

That should return an error on line 4 and it should say something about an
overflow, because an integer variable cannot be that large. Also see
syntactical (?) errors like:

<% Response.Write "Hi %>
or
<% Response.Write "kjasdf" & %>


Ray at work

Thanks for the answer and especially thank you for the link www.aspfaq.com .
This will help a lot!

Cheers,
Christoph
 

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

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,818
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top