VStudio - Debug Mode vs. Release Mode and "Start without Debugging"
I am working on a project with Visual Studio 2008.
- There is a drop down that you can choose Debug / Release.
- There is also a Start Without Debugging (CTRL + F5) option.
What happens if I choose Debug mode but star开发者_JS百科t without debugging? Isn't it a conflict?
What is the relation between these two menus?
These features are completely orthogonal.
The choice of build does(By default, you can change these settings separately and create new build targets):
- The debug build generates debug informations, has IL optimizations disabled and the DEBUG conditional symbol defined
- The release build doesn't generate debug informations, has IL optimizations enabled and the DEBUG symbol is not defined
Run vs Run without Debugger determines if the debugger gets attached on the started process. By default starting with debugger also disables JIT optimizations.
Debug mode affects compilation; it disables optimizations and generates full debugging symbols.
Start Without Debugging simply runs the EXE normally, without a debugger attached. (as if you double-clicked it in Explorer)
If you start without debugging, you will be running your project in VS localhost server outside debug mode. If you choose to Debug, the same thing will happen but you can step through your program using breakpoints, and check out the values of your variables during runtime and also view the memory management of them using VS cool debugging tools.
It's Start Without Debugging. CTRL+F5 basically runs the executable (with no debugger) based on which one you've selected via the drop-down, that is, either the debug version or release version of your executable.
My understanding is that start with debugging attaches the debugger, regardless of how your application is compiled. Start without debugging just runs the application normally, again regardless of how it is compiled.
I think you are confusing compilation and debugging in this case. You might compile it for x86 but the fact that it is x86 does not matter for debugging purposes.
I just realized that when u use Start Without Debugging it affects creation of files and work of breakpoints. neither creating files nor using breakpoints work. if you need these things to work use Debug option instead.
精彩评论