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