I am trying to break while my (native C++) application has mouse focus, and by switching to the Visual Studio application to Ctrl-Alt-Break or Debug > Break All, my application is no longer doing the thing I am trying to break on.
Is there a way to get Visual Studio to break after 5 seconds has elapsed for example? Or is there some kind of debugging api that I can write a script to trigger a Break All without me switching focus to the Visual Studio application?
Being able to break without focus could help with poor man's profiling and better understanding unfamiliar code related to focus.