NO

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

Offline PabloMack

  • Member
  • *
  • Posts: 3
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: 254
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.

Offline PabloMack

  • Member
  • *
  • Posts: 3
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.