Wednesday, April 8, 2009

Visual Studio 2008: How to add a command line argument in debug mode

Right click on your project -> choose properties -> Debug tab

under 'Start Options' there should be a text box called 'Command line arguments'

Now just type your arguments there like you would at the command line.

example:
command line: program.exe my_argument my_2nd_argument

in the box you would just type: my_argument my_2nd_argument

No comments: