Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I prevent the Visual Studio debugger from focusing the window when a breakpoint is hit? [duplicate]

Possible Duplicate:
Visual Studio: How to stop breakpoint hit from stealing focus?

Many times I will set a break point in Visual Studio and run a process that might take seconds or a minute or two. While that runs, I will do something else, usually other coding in another window. When the breakpoint is hit, Visual Studio gains focus and my next several keystrokes go into the debugger and all hell breaks lose depending on what my kestrokes are. (expecially in Visual C++). This is especially annoying the longer it takes to get to the breakpoint since I have to restart all over again.

Bottom line, is there a way to turn off the auto focusing feature in Visual Studio or Windows in general?

like image 257
jjxtra Avatar asked Jul 22 '10 21:07

jjxtra


People also ask

How do I stop auto debugging in Visual Studio?

To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.

How do I fix breakpoint in Visual Studio?

To set a breakpoint in source code: Click in the far left margin next to a line of code. You can also select the line and press F9, select Debug > Toggle Breakpoint, or right-click and select Breakpoint > Insert breakpoint. The breakpoint appears as a red dot in the left margin.

Why does Visual Studio not stop at breakpoint?

This problem occurs because ASP.NET debugging isn't enabled on the application.


1 Answers

You cant stop it but you can hack around it, by setting a hit counter, so it only breaks when it reaches a certiain hit count, just right click the break point and go to hit count to do this.

alt text

like image 61
kyndigs Avatar answered Oct 19 '22 18:10

kyndigs