Automate debugging with Attach to Process?

Hi. I'm debugging a dll that is loaded by a running host application, not my own program. To debug, I go through the same dance each time:

1) Build project

2) Menu->Attach to Process...

3) Select the host process, click Attach

Is there any way to automate these steps Just a reference to docs or menu items would be great.

VC++ Express.

Thanks for your help.



Answer this question

Automate debugging with Attach to Process?

  • Prajkta

     

    Try this:

    Project properties | Configuration Properties | Debugging

      Command: HostApp.exe

      Attach: Yes

    (replace HostApp.exe with the real name of the host app's executable)

    Then start debugging by F5, and the debugger should attach to the host app if it is running.

    Oleg

     


  • Automate debugging with Attach to Process?