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

Re: Debugging ASP by Ray

Ray
Tue Jan 06 12:48:07 CST 2004

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

"Christoph Brecht" <news_NO_SPAM@c-jay.net> wrote in message
news:uPmAJPI1DHA.2972@TK2MSFTNGP09.phx.gbl...
> 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
>
>



Re: Debugging ASP by Christoph

Christoph
Wed Jan 07 07:37:38 CST 2004


"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OYuThWI1DHA.1660@TK2MSFTNGP09.phx.gbl...
> 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