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 进程?
基础教程推荐
- 将不可复制的闭包对象传递给 std::function 参数 2021-01-01
- 随机插入/删除的综合向量与链表基准 2022-01-01
- 提升 ASIO 流缓冲 2021-01-01
- 如何在 C++ 中正确使用命名空间? 2022-01-01
- c++ STL设置差异 2022-01-01
- 如何部分禁用 cmake C/C++ 自定义编译器检查 2021-01-01
- 为什么我们不能使用“虚拟继承"?在 COM 中? 2022-01-01
- 与 CAS 的原子交换(使用 gcc 同步内置函数) 2022-01-01
- C++:获取传递给函数的多维数组的行大小 2021-01-01
- 如何更改 SysDateTimePick32 或 CDateTimeCtrl 的背景颜色? 2022-01-01
