Re: Xcode logging breakpoints with time?
Re: Xcode logging breakpoints with time?
- Subject: Re: Xcode logging breakpoints with time?
- From: Fritz Anderson <email@hidden>
- Date: Thu, 20 Sep 2012 19:03:46 -0500
On 20 Sep 2012, at 6:39 PM, Melvin Walker <email@hidden> wrote:
> I love using the 4.0 breakpoints for logging because I can hide my app's existing built-in logging and just show what I'm interested in.
>
> However, I'd love to get the current time of the log, like NSLog() does. What's a good way to do that in a log command? I'd like to have a log with something like "@current_time()@ %B %H" or something. Any ideas?
Here's a brutal way to do it: Set the breakpoint to run a debugger command:
expr (void)NSLog(@"You know what to do.");
— F
--
Fritz Anderson -- Xcode 4 Unleashed: 4.5 supplement in the works -- <http://x4u.manoverboard.org/>
_______________________________________________
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