• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Running project with command line arguments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running project with command line arguments


  • Subject: Running project with command line arguments
  • From: Roger Banks <email@hidden>
  • Date: Fri, 20 Feb 2009 10:17:05 -0600

I wrote a little command line program. For debugging, I created a little test data file and specified that the file be redirected to STDIN on my executable command line arguments list. It works fine for debugging in XCode. My program receives the input and the output goes to the pseudo terminal. However, I don't always want to go to the debug screen. Sometimes when I make a change to the code I just want to hit "Build & Run" to see the output. When I try to do this, my input is not received on STDIN. My program just sits there waiting for input. I realize that I can go to Terminal and type ./MyProg <MyInput but I want to know if it is possible to stay in XCode and have it work the way I expect it should? If not, why not? Thanks.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: parse error before "__AVAILABILITY_INTERNAL__MAC_10_5"
  • Next by Date: re: Xcode debugger broken with .mm files?
  • Previous by thread: Re: Xcode debugger broken with .mm files?
  • Next by thread: Returning long long values
  • Index(es):
    • Date
    • Thread