Trying to debug an exe in VisualStusio .NET.

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

Guest

Hi all,

I have to debug an exe with the VS studio .NET environment. but first my
exe has to be started using another exe. So I arranged my project properties
to start this first exe. Doing so, my breakpoints are not working.

It seems that the debugger cannot attach itself to my program since it is
started by another exe. I tried using a batch file calling my program but
it's not working. I received an error massge stating I cannot start a
program using a batch file from within the vs.net ide.

Have any ideas?
 
Hi Luc,

You can attach any executable or process to Visual Studio using the menu
Debug->Attach to Process...
However, this requires the process to be running already.
 
Luc said:
Hi all,

I have to debug an exe with the VS studio .NET environment. but first my
exe has to be started using another exe. So I arranged my project properties
to start this first exe. Doing so, my breakpoints are not working.

It seems that the debugger cannot attach itself to my program since it is
started by another exe. I tried using a batch file calling my program but
it's not working. I received an error massge stating I cannot start a
program using a batch file from within the vs.net ide.

Have any ideas?

If you require parameters from the 1st exe, you could manually enter
them in the build properties of the second exe. That way, you don't need
the 1st one at all for debugging.
 
C-Services Holland b.v. said:
If you require parameters from the 1st exe, you could manually enter
them in the build properties of the second exe. That way, you don't need
the 1st one at all for debugging.

That would be project->properties->configuration properties->debugging.
There you can enter a command line parameters.
 
Back
Top