I’m trying to get an ASP page to work, but it keeps blowing up. How do I get it to display ‘response.write’ info instead of blowing up?
p.s. I noticed this as a technique and plan to give it a try.
- On top of page ad On Error Resume Next After each line of code use If Err.Number <> 0 Then Response.Write Err.Description Err.Clear End if You might also Set a Debuggingvariable e.g. intDebug that you increase every x lines intDebug = intDebug + 1
If Err.Number <> 0 Then Response.Write intDebug response.Write ‘
‘ Response.Write Err.Description Err.Clear End if
The problem is that this is not asp.net, but asp. I tagged it as asp.net because I didn’t see a tag for asp.
Ultimate, my hacked solution was to make a huge if statement, e.g.
if 1 = 1 then ‘ continue happily displaying page (bunch of code until end) else Response.write ‘messed up variable: ‘ & messed_up_variable