Xcode Debugger Command Line Arguments

Discussion in 'Mac Programming' started by farmerdoug, Mar 11, 2010.

  1. farmerdoug macrumors 6502a

    Joined:
    Sep 16, 2008
    #1
    If I've written a command line project but want to run it in the Xcode Debugger where do I put the command line arguements?

    Thanks.
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    Project settings if I remember correctly. One of the final three menu items in the Project menu anyway - can't check at the moment I'm in Vista land.
     
  3. farmerdoug thread starter macrumors 6502a

    Joined:
    Sep 16, 2008
    #3
    You are brave; admitting to using Vista here.

    Found the spot; tried; failed. Will try again.
     
  4. rev316 macrumors regular

    Joined:
    Nov 7, 2004
    #4
    It's in the executable environments. However, I find working from the terminal with bash to be easier then mucking with xCode environment variables. Since, your effectively only using XCode as an IDE now.
     
  5. farmerdoug thread starter macrumors 6502a

    Joined:
    Sep 16, 2008
  6. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #6
    Nah, Vista > Mac OS X anyway. It has long file names don't you know?
     
  7. szymczyk macrumors regular

    Joined:
    Mar 5, 2006
    #7
    Use the executable inspector to add the command-line arguments. Select your executable file from the Groups and Files list and click the Info button in the project window toolbar. Doing this opens the executable's inspector. Click the Arguments tab in the inspector. From there you can add your command-line arguments.
     

Share This Page