简体   繁体   English

哪些工具可用于从命令行调试托管代码?

[英]What tools can be used to debug managed code from the command line?

What tools can be used to debug managed code from the command line (in a fashion similar to GDB)? 可以使用哪些工具从命令行调试托管代码(类似于GDB)?

After having done a little research, I see that mdbg.exe may have fulfilled a similar purpose in the past (however it appears to have been removed from the Windows 8 SDK). 经过一些研究之后,我发现mdbg.exe过去可能已经实现了类似的目的(但是似乎已从Windows 8 SDK中删除了)。 I've started looking into cdb.exe, but as of yet cannot get it to list source lines or set breakpoints. 我已经开始研究cdb.exe,但到目前为止,它尚无法列出源代码行或设置断点。

Cdb.exe is an unmanaged debugger, the console version of Windbg.exe. Cdb.exe是非托管调试器,是Windbg.exe的控制台版本。 It does support the SOS extension that permits peeking at internal CLR structures but rarely what you are looking for when simply debugging managed code. 它确实支持SOS扩展,该扩展允许窥视内部CLR结构,但是很少需要在调试托管代码时寻找的内容。

MDbg was removed from the SDK, it wasn't compatible with the updated debugger interfaces in .NET 4. It took them a while to get it updated. MDbg已从SDK中删除,它与.NET 4中更新的调试器接口不兼容。他们花了一段时间才对其进行更新。 But that was ultimately done, you can download it here . 但这最终完成了,您可以在此处下载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM