Compile ASP.NET MVC 2 application in Release mode, but have detailed error messages
Good day!
I'd like to compile my MVC application in Release mode, but have line numbers in error messages which I write to log.
Can this be achived by setting "Build" -> "Advanced" -> "Debug Info" -> "Full"
Default for Debug is "full", f开发者_如何转开发or Release "pdb-only".
Thanks!
Yes it can.
See also Getting line number from pdb in release mode and Display lines number in Stack Trace for .NET assembly in Release mode
精彩评论