开发者

Debugging tool for managed code

开发者 https://www.devze.com 2023-03-25 10:22 出处:网络
I am new to C# and wondering whether \"windbg\" or \"Visual Studio Debugger\" would be better tool for debugging 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

精彩评论

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