467,879 Members | 1,349 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,879 developers. It's quick & easy.

Exception handling source line number

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 ;-)

Mar 12 '08 #1
  • viewed: 1563
Share:
2 Replies
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)
"Mr Major Thorburn" wrote:
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 ;-)
Mar 12 '08 #2
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.

"bruce barker" wrote:
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)
"Mr Major Thorburn" wrote:
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 ;-)
Mar 12 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by adi | last post: by
11 posts views Thread by Master of C++ | last post: by
3 posts views Thread by mailar | last post: by
5 posts views Thread by juergen perlinger | last post: by
2 posts views Thread by Rajeev Soni | last post: by
8 posts views Thread by Jonah Olsson | last post: by
41 posts views Thread by Zytan | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.