• 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: where are the results of calls to printf, fprintf shown?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: where are the results of calls to printf, fprintf shown?


  • Subject: Re: where are the results of calls to printf, fprintf shown?
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 29 Dec 2011 13:14:46 -0600

On Dec 29, 2011, at 11:57 AM, Jens Alfke wrote:

>> Yes, that's correct; i.e. the console I originally used was the Console app.  I thought
>> that I remembered using it to show the result of printf() but that was wrong.  It
>> only shows NSLog().
>
> It does show output to stderr, so if you want stuff logged there you can use fprintf(stderr, "…").

The central console log does show stderr (and, I thought, stdout), but only when an app is launched in the usual way.  When it is launched from Xcode (or, as another example, a shell in Terminal), its output does not go to the console log.  That may be the source of the OP's confusion.

Regards,
Ken

 _______________________________________________
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

References: 
 >where are the results of calls to printf, fprintf shown? (From: Boyd Collier <email@hidden>)
 >Re: where are the results of calls to printf, fprintf shown? (From: Joar Wingfors <email@hidden>)
 >Re: where are the results of calls to printf, fprintf shown? (From: Boyd Collier <email@hidden>)
 >Re: where are the results of calls to printf, fprintf shown? (From: Jens Alfke <email@hidden>)
 >Re: where are the results of calls to printf, fprintf shown? (From: Conrad Shultz <email@hidden>)
 >Re: where are the results of calls to printf, fprintf shown? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: where are the results of calls to printf, fprintf shown?
  • Next by Date: Re: App won't run with entitlements on
  • Previous by thread: Re: where are the results of calls to printf, fprintf shown?
  • Next by thread: App won't run with entitlements on
  • Index(es):
    • Date
    • Thread