Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Mdbg.exe 或 ICorDebug 在 c# 中以编程方式打印进程的所有运行线程的堆栈跟踪?
谢谢。
Red Flag 的“Dump Stacks”功能的 C# 源代码中有一个示例。 http://redflagdebugger.codeplex.com/
我找到了解决方案。我下载了带有源代码的 CLR Managed Debugger (mdbg) Sample 4.0。我更改了一些源代码行以根据需要使用它。