Disabling automatic debugging of the debugger at application startup

The Visual Studio 2010 debugger automatically sets a breakpoint at the beginning of Main () when the application starts (C # project). Therefore, every time I launch the application in debug mode, it paused at the beginning. Please suggest how to disable it.

update:
- I definitely hit "Start Debugging (F5)" and NOT "Step into a new instance (F10)." Use the F5 key or menu
- There is definitely no breakpoint
- It is simple and convenient. The main method:

[STAThread] private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new ExpertEntryForm()); } 

PS It's funny, but I really can't find (and google) this flag!


Decision

Indeed, it was an outdated breakpoint that did not appear in the list of breakpoints and the editor, but was activated every time the application was launched.
Solve it:
1. Add a new breakpoint somewhere. (Thus, at least one breakpoint in the list of breakpoints)
2. Click Debug-> Delete all breakpoints

So leppie's suggestion should work too.

+4
source share
2 answers

Delete the *.user files.

It may be that an outdated breakpoint is not displayed.

You can also see breakpoints at Debug > Breakpoints .

+3
source

Are you starting the application in debugging (F5) or entering the application (F10)?

If you use F10, you always start at the beginning of Main (). F5 will launch the application until it meets the first breakpoint.

+2
source

Source: https://habr.com/ru/post/1391691/


All Articles