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.
source share