开发者

Debugging tool for managed code

I am new to C# and wondering whether "windbg" or "Visual Studio Debugger" would be better tool for debugging managed code?

For the past couple of years, I have been doing development in C++ and I am comfortable in using windbg as compared to Visual Studio debugger. How开发者_开发技巧ever, I am not sure whether windbg would work best in the case of managed code as well?

Is there any other debugging tool besides windbg and Visual Studio Debugger which works even better than these in debugging managed code?


WinDbg needs SOS or PSSCOR2/4 to debug managed code, but with either of those you get a very powerful debugger. However, I would not recommend using only WinDbg for managed code as support for source debugging is rather limited at the moment (and has been for a long time). You might also want to get SOSEX as it complements SOS/PSSCOR with additional useful commands.

In my experience Visual Studio works very well for regular debugging and WinDbg+SOS/PSSCOR2 is excellent for all those hairy problems such as memory issues, deadlocks and so forth that VS doesn't handle very well.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜