IIS v5+ has an exponential increase in error-handling
support. I guess if you're talking about debugging
during development, then this may not be as much
of an interest to you, but you can read more here...
http://www.devarticles.com/art/1/382
If you don't have Visual Interdev + IIS installed on
your development machine then you won't be able to
step through your ASP (and some people still can't
even when they do have both installed - it's a
royal pain to get working). Here's that info...
http://support.microsoft.com/support/kb/articles/Q244/2/72.ASP
If you want, you can use a subroutine to make it
a little easier (it's been a while since I've done
this, but I think it will work). Just put the main
logic of your code in a subroutine, like this...
SUB Main()
'do your stuff here...
END SUB
' this is the only non-subroutined ASP on the page...
ON ERROR RESUME NEXT
CALL Main
IF Err.Number THEN Response.Write Err.Description
You can switch to Server.GetLastError() if you're
using IIS 5/ASP 3 so you can get more info, like
the line that the error occurred on. If you didn't
mind using this same approach in production, you
could stick the part the calls Main in an include
and have a SUB Main in every ASP file which pulls
in the include... then you can switch between
debugging & "notify me when something wrong happens
because it should work" modes. Here is some info
specifically on the GetLastError/ASPError stuff...
http://www.devguru.com/Technologies/asp/quickref/asperror.html
~jed