If I choose release mode to build a dll, is the stacktrace information still available?
If so, then what information is unavailable in release mode?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You always have stack trace information–that’s a runtime feature unrelated to the build mode–but line numbers and source file names are normally unavailable in release build stack traces.
You can get both line numbers and source file names in release build stack traces (including in exceptions) by altering the build configuration to create full program database (.pdb) files. To do so in Visual Studio:
Note that this will only help if the .pdb files are deployed alongside your application.