Say I'm debugging an application. It's paused in the debugger. I hit the Run button. The application being debugged gets focused (and Visual Studio loses focus).
Is there a way to prevent this behaviour?
(And, as a bit of an aside: Why does this happen? Is it Visual Studio deliberately giving that window focus? Or is it a side-effect of the way debugging works on Windows? Or something else?)
For context, see this answer. Although I imagine that, if possible, it would be useful to prevent the focus change in other debugging scenarios as well.