Execution of batch file from VC++(IDE)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am having one batch file and using this I can start my Server. It will execute all exes while starting. Now my question is how to debug my exe using this batch file?? Is it possible to execute this batch file from my prject debug session....
 
KRK said:
I am having one batch file and using this I can start my Server.
It will execute all exes while starting. Now my question is how to
debug my exe using this batch file?? Is it possible to execute
this batch file from my prject debug session....

From the menu select Project->Properties->Debugging.

Then enter the name of the batch file in the command box and any parameters
in the box below.

Regards,
Will
 
Actually I was trying to do the very same thing today, ie: debug an exe
launched by a batch file. The page entitled "launching the debugger
automatically" in the vs.net help was more helpful for me.

It suggests getting creative with the registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image
File Execution Options
 
doug mansell said:
It suggests getting creative with the registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image
File Execution Options

Right. That launches the debugger and the debuggee at the same time. In
addition there is the possibility to instrument the source with a call to
DebugBreak() which causes the debugger to attach at runtime.

Regards,
Will
 
Back
Top