Possible Duplicate:
Difference between <compilation debug=“true”> and .csproj file settings?
In an ASP.net web application, you have two 'debug' settings. One is in the webconfig itself, and the other is when actually compiling the solution in Visual Studio. First of all, are these related?
An issue we have normally when compiling in Visual Studio as 'Release' is that when trying to diagnose an error via a stack trace / log files:
- Line numbers do not match
- Sometimes, line numbers are not even shown
This is very problematic for troubleshooting applications on live environments, and is almost a deal-breaker for me.
What is the difference between setting debug=true in webconfig, and compiling in Debug mode, and can you set debug=false in web.config, while compiling in Debug mode?