• 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
Re: specifying the source of stdin (pipe / file)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: specifying the source of stdin (pipe / file)


  • Subject: Re: specifying the source of stdin (pipe / file)
  • From: Rick Sustek <email@hidden>
  • Date: Fri, 2 May 2008 10:40:55 -0700

Okay,

so, if you have a standard command line executable project that reads from stdin, and you want to test it from Xcode, here's some tips:

To just run it, set it to use 'Pseudo Terminal' and use the 'Run Log' window to interact with it. Text you type is recorded in regular font, while lines emitted from your program are in bold font.

To debug it, set the debugging option to use 'Pseudo Terminal'. You can set a command line arg to read from a file, for example "< junk.txt". Use the 'Standard I/O' window to see the results.

This works for me anyway!
Good luck,
-Rick



_______________________________________________
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


  • Follow-Ups:
    • Re: specifying the source of stdin (pipe / file)
      • From: Adam Richard <email@hidden>
References: 
 >specifying the source of stdin (pipe / file) (From: Adam Richard <email@hidden>)
 >Re: specifying the source of stdin (pipe / file) (From: Rick Sustek <email@hidden>)
 >Re: specifying the source of stdin (pipe / file) (From: Adam Richard <email@hidden>)

  • Prev by Date: Re: Xcode Document Browser cannot open search results in itself
  • Next by Date: Re: specifying the source of stdin (pipe / file)
  • Previous by thread: Re: specifying the source of stdin (pipe / file)
  • Next by thread: Re: specifying the source of stdin (pipe / file)
  • Index(es):
    • Date
    • Thread