Trying to debug an exe in VisualStusio .NET.

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?
 
M

Morten Wennevik

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.
 
C

C-Services Holland b.v.

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

C-Services Holland b.v.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top