如何调试.exe由另一个.exe在Delphi中启动 [英] How to debug .exe started by another .exe in Delphi

查看:283
本文介绍了如何调试.exe由另一个.exe在Delphi中启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想调试由App1.exe启动的App2.exe。如果App2.exe是一个dll,我可以指定一个主机应用程序,但这似乎不适用于.exe。

I want to debug App2.exe, which is started by App1.exe. If App2.exe were a dll I could specify a host application, but this doesn't seem to work with an .exe.

我现在使用'附加进程' ,但是如果App2.exe在我这样做之前崩溃,这是没用的。

I now use 'attach to process', but this is useless if App2.exe crashes before I do that.

有没有办法通过手动附加到进程?

Is there a way to do this with having to attach to the process manually?

推荐答案

不,但可能有办法使其正确附加。找到你知道将会发生在App2不久之前的崩溃点,并让它弹出一个模态的对话框在那一点。那么它将不会继续,直到您解除它,给您时间附加调试器。

No, but there might be a way to get it to attach properly. Find something that you know will happen in App2 soon before the crash point, and have it pop up a modal dialog box at that point. Then it won't continue until you dismiss it, giving you time to attach the debugger.

这篇关于如何调试.exe由另一个.exe在Delphi中启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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