How to debug a ManualReset and AutoReset event?

Are there any features in Visual Studio that let me check how many AutoReset / ManualReset events are waiting at a particular point in the code when I stop for a breakpoint? I am debugging a large application and it becomes messy to keep things in mind.

thank

+4
source share
1 answer

You can use the debug window parallel stacks . This will not specifically isolate reset events, but it is the fastest way by which I can see where each waiting thread is blocked. This does a decent job of dropping multiple threads together, where they have the same sections of the call stack.

Parallel stacks in action

+3
source

Source: https://habr.com/ru/post/1543434/


All Articles