How to detect and debug multi-threading problems?

前端 未结 17 1899
陌清茗
陌清茗 2020-11-29 16:12

This is a follow up to this question, where I didn\'t get any input on this point. Here is the brief question:

Is it possible to detect and debug problems co

17条回答
  •  星月不相逢
    2020-11-29 16:49

    Visual Studio allows you to inspect the call stack of each thread, and you can switch between them. It is by no means enough to track all kinds of threading issues, but it is a start. A lot of improvements for multi-threaded debugging is planned for the upcoming VS2010.

    I have used WinDbg + SoS for threading issues in .NET code. You can inspect locks (sync blokcs), thread call stacks etc.

提交回复
热议问题