How can I debug a win32 process that unexpectedly terminates silently?(如何调试意外以静默方式终止的 win32 进程?)
问题描述
我有一个用 C++ 编写的 Windows 应用程序,它偶尔会消失.我使用蒸发这个词是因为没有留下任何东西:没有来自 Windows 的我们很抱歉"消息,没有来自 Dr. Watson 设施的崩溃转储......
I have a Windows application written in C++ that occasionally evaporates. I use the word evaporate because there is nothing left behind: no "we're sorry" message from Windows, no crash dump from the Dr. Watson facility...
有一次在调试器下发生崩溃,但调试器并没有中断——它显示应用程序仍在运行.当我手动暂停执行时,我发现我的进程不再有任何线程.
On the one occasion the crash occurred under the debugger, the debugger did not break---it showed the application still running. When I manually paused execution, I found that my process no longer had any threads.
如何捕获此进程终止的原因?
How can I capture the reason this process is terminating?
推荐答案
您可以尝试使用 windows调试工具包.
adplus -crash -p yourprocessid
自动转储工具为异常提供小型转储,并在应用程序崩溃时提供完整转储.
The auto dump tool provides mini dumps for exceptions and a full dump if the application crashes.
这篇关于如何调试意外以静默方式终止的 win32 进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何调试意外以静默方式终止的 win32 进程?
基础教程推荐
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 初始化列表*参数*评估顺序 2021-01-01
- CString 到 char* 2021-01-01
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
