• 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: Adam Richard <email@hidden>
  • Date: Fri, 02 May 2008 14:52:09 -0300

Rick Sustek wrote:
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 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!

It doesn't work for me. I'm now suspecting it may be because I have an External Build Target and my own Makefile, because some tests revealed that there are probably other bugs that only appear with that type of build target. (For some reason IDEs always seem to have trouble letting you manage your own Makefile, even though it's the most programmer-friendly way to specify how to build things. I'll probably have to try letting Xcode manage the build settings and maintain a separate Makefile for when I want to use the command line, and see if that makes things work.) _______________________________________________ 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: Jason Watts <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>)
 >Re: specifying the source of stdin (pipe / file) (From: Rick Sustek <email@hidden>)

  • Prev by Date: Re: specifying the source of stdin (pipe / file)
  • 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