asp.net compile options

R

robin9876

What are the differences for Compile project as debug instead of
release?

If a project is compiled as release and then needs to be debugged, is
setting the value in web.config debug=true the only change required?
 
J

Joshua Flanagan

No, if you compile the project as Release (using the default VS.NET
settings), you will not be able to debug the application as managed code.

If you look in the project properties for the different modes, you can
see the differences. For example, only the Release mode has "Optimize
Code" enabled, and only Debug mode has "Generate Debugging information"
enabled. You will want to at least Generate Debugging information, to
get a symbol file (.pdb). If you do not turn off "Optimize Code", you
may have trouble stepping through the code, as there will no longer be a
direct relationship between the executing code and the code in your editor.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top