Re: Trapping Console Messages
Re: Trapping Console Messages
- Subject: Re: Trapping Console Messages
- From: Alastair Houghton <email@hidden>
- Date: Tue, 21 Apr 2009 19:53:59 +0100
On 21 Apr 2009, at 18:57, Gordon Apple wrote:
Is there a way to trap (or break) when a console message appears, so
one can
look at the stack trace and try to find out where it is coming from?
Break on write() then set a condition on the file descriptor being 0.
After my first document window appears, I get two messages as follows:
RTP(4643,0xb0103000) malloc: free_garbage: garbage ptr = 0x106e510,
has
non-zero refcount = 1
But you don't need to do that for a malloc bug. If you look in
TN2124, you'll see that you can set a breakpoint on malloc_printf(),
which will trigger when that happens.
Kind regards,
Alastair
--
http://alastairs-place.net
_______________________________________________
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