为什么要使用WinDbg和Visual Studio(VS)调试器? [英] Why use WinDbg vs the Visual Studio (VS) debugger?

查看:108
本文介绍了为什么要使用WinDbg和Visual Studio(VS)调试器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

相对于Visual Studio调试器,使用 WinDbg 的主要原因是什么?

What are the major reasons for using WinDbg vs the Visual Studio debugger?

它通常用作Visual Studio调试器的完整替代品,还是在需要时用于更多替代品.

And is it commonly used as a complete replacement for the Visual Studio debugger, or more for when the need arises.

推荐答案

如果您想知道为什么应该在Visual Studio上使用windbg,那么您需要阅读

If you are wondering why you should use windbg over Visual Studio, then you need to read Advanced Windows Debugging. Any time you need to debug a truly ugly problem windbg has better technology to do it with than Visual Studio. Windbg has a more powerful scripting language and allows you to write DLLs to automate difficult problems. It will install gflags.exe, which gives you better control over the heap for debugging memory overwrites.

您实际上不需要运行安装,只需将文件复制过来就可以了.它还会安装adsplus.vb,因此您可以对正在运行的进程进行小型转储.设置执行远程调试也非常容易.没有什么比能够在自己的办公桌上调试问题更好的了,而不是与在测试PC上闪烁的15英寸显示器进行对抗.

You don't actually need to run the install, you can just copy the files over and be ready to go. Also it installs adsplus.vb, so you can take mini-dumps of running processes. It is also very easy to setup to perform remote debugging. There is nothing better than being able to debug a problem from your own desk instead of fighting the 15" monitor that flickers on a test PC.

对于日常代码编写,我使用Visual Studio,但是一旦您需要从其他计算机上开始调试问题或发现自己处于非常丑陋的状况时,windbg是唯一的选择.花一些时间学习windbg是一项巨大的投资.另外,如果您查看崩溃转储,则有两个很好的资源, http://www.dumpanalysis.org/blog http://blogs.msdn.com/ntdebugging/default.aspx 使用windbg进行所有调试.

For day to day code writing I use Visual Studio, but once you need to start debugging problems from other computers or find yourself in a very ugly situation, windbg is the only way to go. Spending some time learning windbg is a great investment. Also if you look at crash dumps there are two great resources, http://www.dumpanalysis.org/blog and http://blogs.msdn.com/ntdebugging/default.aspx that do all their debugging using windbg.

这篇关于为什么要使用WinDbg和Visual Studio(VS)调试器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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