NO

Author Topic: How do I pass command line arguments to a program that is being debugged?  (Read 1654 times)

PabloMack

  • Guest
For instance, my program is run with the command line:

E:> MyProgram File.Nam<CR>

How would I pass "File.Nam" to the debugger so it can hand it to my program so it can find it with argc and argv?

Offline DMac

  • Member
  • *
  • Posts: 272
From the IDE menu bar select "Project>Project Options...>General Tab>Command line arguments"
No one cares how much you know,
until they know how much you care.

PabloMack

  • Guest
When the debugger is active, the Project Options is grayed out. I guess that you have to enter the command line options where you say just in case you are going to use the debugger because by the time you run the debugger, the entry is already in use so it is too late at that point? Thanks for the answer.