I have an app that sometimes hangs when the left mouse button is pressed, and resumes when the button is released. The code base is large with complex input handling, and I have no idea where the hang is coming from.
I'm in desperate need of a stack trace and a way to inspect state when this happens, but I can't find a way to suspend the app like this. How can I trigger a Pause operation in the debugger without releasing the mouse or changing app focus? The Metal debugger has a feature to 'Capture in X seconds' - is there something similar for general debugging?