How to debug .exe launched by another .exe in Delphi

I want to debug App2.exe, which starts App1.exe. If App2.exe is a dll, I can specify the host application, but this does not seem to work with .exe.

Now I use "attach to process", but it is useless if App2.exe works before I do it.

Is there a way to do this with the need to manually connect to this process?

+3
source share
5 answers

No, but there might be a way to get it to connect correctly. Find what you know will happen in App2 shortly before the crash point, and at that moment it will appear in the modal dialog box. Then it will not continue until you miss it, giving you time to attach the debugger.

+2
source

Set the debug debugging option in debugging. By default it is disabled. When App1 starts a new process, the debugger pauses. If the debugger is not automatically connected to the new process, attach it to it, and then resume it.

+5
source

, app2.exe .

+1

, . , , - , . , winword.exe , notepad.exe

, ( , :))

, . Windows GFlags, .

+1

, , :

  • . , inc.
  • IDE IDE.
  • ,

, exe, DLL-. , , DLL , IDE. , .

0

Source: https://habr.com/ru/post/1720931/


All Articles