Stack trace in website project, when debug = false

Posted by chandmk on Stack Overflow See other posts from Stack Overflow or by chandmk
Published on 2010-05-19T13:04:35Z Indexed on 2010/05/19 14:10 UTC
Read the original article Hit count: 291

Filed under:
|

We have a website project. We are logging unhanded exceptions via a appdomain level exception handler.

When we set debug= true in web.config, the exception log is showing the offending line numbers in the stack trace.

But when we set debug = false, in web.config, log is not displaying the line numbers.

We are not in a position to convert the website project in to webapplication project type at this time. Its legacy application and almost all the code is in aspx pages. We also need to leave the project in 'updatable' mode. i.e. We can't user pre-compile option. We are generating pdb files.

Is there anyway to tell this kind of website projects to generate the pdb files, and show the line numbers in the stack trace?

© Stack Overflow or respective owner

Related posts about asp.net-webforms

Related posts about ASP.NET