Can I get the stack traces of all threads in my c# app?

后端 未结 3 1150
北恋
北恋 2021-02-05 05:19

I\'m debugging an apparent concurrency issue in a largish app that I hack on at work. The bug in question only manifests on certain lower-performance machines after running for

3条回答
  •  我在风中等你
    2021-02-05 05:59

    There is a tool on CodePlex called Managed Stack Explorer (that I believe originated from Microsoft). It uses the debugging and profiling API to capture the stack traces of the threads in a running .Net application, without the need to modify the application.

    You could run your application until you experience the issue, then analyse it using this tool to capture the current stack traces of all running threads. The benefit of this approach is that you leave your application unmodified (instrumenting it may change its behaviour), and the tool is free.

提交回复
热议问题