Breaking single thread

后端 未结 5 1696
忘了有多久
忘了有多久 2020-12-15 18:08

Is it possible to break a single thread in Visual Studio, while other threads will continue their execution?

I have one background thread that does simple data sendi

5条回答
  •  温柔的废话
    2020-12-15 18:52

    Set a counter that does a one up for each thread created and then set your break point to break on a condition and pick a value for that counter. I don't think this will work in all cases, especially PLINQ, but should be doable in a lot of situations.

提交回复
热议问题