How to dump or search in call stacks of ALL threads in Visual Studio

前端 未结 2 1978
终归单人心
终归单人心 2020-12-28 09:20

How to dump or search in call stacks of ALL threads in Visual Studio? We have a server process to debug and it has hundreds of threads running, so it should be hard to manua

相关标签:
2条回答
  • 2020-12-28 10:14

    I just had the same problem, also in VS2005. I found a simpler solution: While debugging open the command window of VS and use the command: Debug.ListCallStack /AllThreads

    I found this on: http://blogs.msdn.com/b/greggm/archive/2005/08/02/446899.aspx

    0 讨论(0)
  • 2020-12-28 10:21

    Later I found the answer by using WinDbg,

    First save a minidump in VS debug session, say, myapp.dmp

    Then using the following command to dump all callstack to out.txt

    cdb -z c:\myapp.dmp -logo out.txt -lines -c "~*kb;q" -y c:\symbols

    0 讨论(0)
提交回复
热议问题