将 WinDbg 设置为默认调试器 [英] Set up WinDbg as the default debugger

查看:61
本文介绍了将 WinDbg 设置为默认调试器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我的应用程序抛出未处理的异常时,我都希望 WinDbg 在我的调试机器上捕获该异常,而不是 博士.Watson 等.如何配置?

Whenever my application throws an unhandled exception, I would like WinDbg to catch that exception on my debugging machine rather than Dr. Watson, etc. How can this be configured?

推荐答案

运行 windbg -I 以在默认的事后调试器中安装它.

Run windbg -I to install it at the default post mortem debugger.

正如 Kurt 在下面指出的,WinDbg 有 32 位和 64 位版本.执行 windbg -I 为与调试器位数对应的进程设置事后调试器.

As Kurt points out below WinDbg comes in both 32 and 64 bit versions. Executing windbg -I sets up the post mortem debugger for the processes corresponding to the bitness of the debugger.

如果您需要同时安装 32 位和 64 位版本,您可以并行安装两个版本的 WinDbg.

You can install both versions of WinDbg side-by-side if you need to have both the 32 and 64 bit versions available.

来自帮助文件:

-I[S] 安装 WinDbg 作为事后调试器.有关详细信息,请参阅启用事后调试.后尝试此操作,成功或显示失败信息.如果 S 是包括,这个程序就完成了如果成功则默默无闻;只要显示失败消息.-I参数不得与任何其他参数.该命令将没有真正启动 WinDbg,虽然WinDbg 窗口可能会出现片刻.

-I[S] Installs WinDbg as the postmortem debugger. For details, see Enabling Postmortem Debugging. After this action is attempted, a success or failure message is displayed. If S is included, this procedure is done silently if it is successful; only failure messages are displayed. The -I parameter must not be used with any other parameters. This command will not actually start WinDbg, although a WinDbg window may appear for a moment.

这篇关于将 WinDbg 设置为默认调试器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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