How to debug Visual Studio debugger only one thread at a time in a multi-threaded program?

In a multi-threaded application, when I create several threads, how can I save the debugger in only one of them if they sleep and wake up? I am using C #.

Addition: my application needs to create some threads for control, each of which, their own (for simplification) hardware device.

Each returns some data from its device and affects another stream.

To check if one thread is working, I have to β€œfreeze” on one and check at a certain point if it does not β€œharm” the others.

+4
source share
1 answer

Well, you can freeze the desired thread directly from the debugger:

enter image description here

+5
source

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


All Articles