I have a VB6 console app and it uses command line parameters. For debugging, I would like to be able to start it from the IDE and ideally be able to pass it those parameters to see how it normally operates. I realize I could set a breakpoint at the appropraite place and use the Immediate window to set the values outside the command line, and I have used a couple of other workarounds in the past, but is there a way to do this as if I had actually started it as a console app?
+5
A:
Select Project | Properties, select the Make tab, enter the command line params in the Command Line Arguments text box. These will apply when run in the IDE, but be aware that they will also compile in to the EXE, so remove them before you compile.
Jack Straw
2009-08-12 18:43:00
Great, thanks! Now that you mention it, I recall seeing this in the past, but I haven't done much VB6 for a few years, and I have forgotten a lot.
Cyberherbalist
2009-08-12 18:46:05
Actually, Command Line Arguments on the Make tab are design-time only. They do *not* get compiled into the exe.
C-Pound Guru
2009-08-13 13:20:29