如何调试意外终止的win32进程? [英] How can I debug a win32 process that unexpectedly terminates silently?
问题描述
我有一个Windows应用程序用C ++编写,偶尔蒸发。我使用了蒸发一词,因为没有什么遗留下来:没有我们很抱歉的消息从Windows,没有从沃森博士设施崩溃转储...
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进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!