Re: where are the results of calls to printf, fprintf shown?
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