转储堆栈跟踪每个线程运行 [英] Dump StackTrace for each thread running

查看:107
本文介绍了转储堆栈跟踪每个线程运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有.NET(VB.NET或C#)的方式,当异常情况发生,倾倒每个线程的堆栈跟踪?基本上,我想重现Visual Studio的调试 - 会发生什么>线程窗口,看看每个线程在做什么,当异常发生

Is there a way in .NET (VB.NET or C#), when an exception happens, to dump the stacktrace of each thread? Basically I would like to reproduce what happens in Visual Studio's Debug->Threads window to see what each thread was doing when the exception happened

推荐答案

如果你想获得在管理code中的所有线程的堆栈跟踪,那么你可以尝试<一href="http://www.microsoft.com/downloads/en/details.aspx?familyid=38449a42-6b7a-4e28-80ce-c55645ab1310&displaylang=en">mdbg.看一看管理堆栈管理器的它使用MDBG并得到堆栈所有的线程。

If you want to get stack traces of all the threads within managed code then you could try mdbg. Have a look at Managed Stack Explorer it does use mdbg and gets stacks of all the threads.

这篇关于转储堆栈跟踪每个线程运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆