Exception handling source line number

  • Thread starter Thread starter Mr Major Thorburn
  • Start date Start date
M

Mr Major Thorburn

I am using global.asax to handle my web application exceptions and have
configured it to create event log entries for errors that occur and to
display an error page advising the user to contact the helpdesk.
I have an intermittent uninitialised object error that I am not able to
reproduce in test and for which I really need the source line number.
I believe this information is contained in the PDB but am not sure if one is
created if I set the debug="true" flag in the compilation part of the
system.web section of the web.config when the application is recompiled.

Anyone any idea?

Regards, Major.
p.s. Major is my Christian name ;-)
 
actually when debug is true, the line numbers are in the dll and only
generated with debug. if compiled debug ion, then the stacktrace will include
the line number.

note: debug=true in web.config only controls the aspx pages (runtime
compile, any code compiled by visual studio will honor the visual studio
setting.

-- bruce (sqlwork.com)
 
Bruce, thanks for that.

The web app was distributed to the server by copy and no precompile was
carried out.
Would the .cs files therefore be compiled with debug?

Regards, Major.
 
Back
Top