what is the difference between start Debugging and Start Without Debugging in Visual Studio while running a program ?
3 Answers
The first option starts the program under the control of Visual Studio's debugger. The second option starts the program stand-alone. Some of the practical differences while debugging a process are:
- You can pause, resume, stop and restart the debugged process from Visual Studio.
- Breakpoints defined in the code will be active for a debugged process, and the debugger will pause the process and show a stack trace whenever the process hits one of them.
- You cannot exit Visual Studio without stopping the debugged process.
- When a debugged console process exits, it will display a termination message until you press a key. This allows you to inspect the output of a just-ended process without having the console window immediately disappear on you.