Im just wondering if anyone knows if its possible to setup the debuger such that F11 is only interested in a single thread? I have two threads running atm but im only interested in 1 of them. As such i dont want the screen to keep jumping further up the page to show me what the 1st thread is doing. Id like to set it up such that it only shows what the 2nd thread is doing.
Any pointers would be appreciated, thanks.
One way to do it would be to freeze the thread you are not interested in.
In Visual Studio, show the “Threads” window, available from the Debug->Windows menu.
Then, while you are tracing using F11, if the debugger breaks in the thread you are not interested in, find this thread in the threads window, right-click it and choose the “Freeze” option in the context menu.
Now when you continue to trace using F10 or F11, you will never hit breakpoints in the frozen thread.
Note that the frozen thread will not be executing at all, so if you do need it to do some work while you are debugging, you may need to unfreeze and freeze it again from time to time.