Debug a console program with arguments?

  • Thread starter Thread starter Gustaf Liljegren
  • Start date Start date
G

Gustaf Liljegren

I have a console program that takes one file and outputs another. The file
name is submitted as an argument as usual. I can't figure out how to have
the nice step-by-step debugging while also submitting arguments on the
command-line. That is, first run the program as the end user, submit the
argument, then get to the step-by-step debugging mode. Is there a way to do
this?

Gustaf
 
Jon Skeet said:
Do you definitely have to run it as an end user rather than just
putting the command line arguments in the project properties in Visual
Studio?

Nah. Nice. Thanks.

Gustaf
 
Gustaf Liljegren said:
I have a console program that takes one file and outputs another. The file
name is submitted as an argument as usual. I can't figure out how to have
the nice step-by-step debugging while also submitting arguments on the
command-line. That is, first run the program as the end user, submit the
argument, then get to the step-by-step debugging mode. Is there a way to do
this?

Do you definitely have to run it as an end user rather than just
putting the command line arguments in the project properties in Visual
Studio?

I'm sure that you *can* attach the debugger to a running process, but
it's easier to do the above if you can :)
 

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

Similar Threads


Back
Top