• 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: perplexed trying to run/debug my app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: perplexed trying to run/debug my app


  • Subject: Re: perplexed trying to run/debug my app
  • From: Mark Lentczner <email@hidden>
  • Date: Wed, 7 Apr 2004 20:01:38 -0700

With the Inspector, I set a Launch Argument to be:
	< ss.txt, and
I don't think that Xcode emulates shell style input/output redirection operators. The Launch Arguments are what really end up in argv/argc to main(). "< ss.txt" on the command line is actually handled by the shell and never seen by your application. Gdb just happens to do it too.

A common idiom is for applications to read from files named on the command line and only read stdin if there are none. If you implement that, then you can set your Launch Arguments to "ss.txt".

	- Mark
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >perplexed trying to run/debug my app (From: Phil Curry <email@hidden>)

  • Prev by Date: Re: Problem linking Framework to my App
  • Next by Date: phantom link errors in xcode
  • Previous by thread: Re: perplexed trying to run/debug my app
  • Next by thread: Precompiled headers in a mixed environment
  • Index(es):
    • Date
    • Thread