Possible to debug with Command Line parameters in Visual Studio Express?

G

garyusenet

Hi I'm playing around with the main method signature, and testing
reading of command line paramaters.

At the moment i have to build the solution, go to a command prompt,
navigate to the folder, and then run the program. To test it.

Is there a way i can tell MS Visual Studio Express to run the program
in the IDE's debugger, with a given set of command line arguments?

Thanks,

Gary-
 
G

garyusenet

I've managed to find the answer for anyone that needs it.

It's a setting you can specify in the properties for the project -
under start options.


Gary-
 
M

Marc Gravell

[Project] -> Properties -> Debug -> Start Options -> Command lne
arguments:

Or... for debugging purposes you could just switch the Main()
method... swap it with a dummy that calls your real code (now "Main2"
or something) with the desired options... the latter also allows you
to do lots of test cases in one sweep

Marc
 

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