Re: Coded breakpoint
Re: Coded breakpoint
- Subject: Re: Coded breakpoint
- From: Ken Thomases <email@hidden>
- Date: Wed, 11 Mar 2009 20:25:54 -0500
On Mar 11, 2009, at 7:46 PM, William Kitching wrote:
I want to write my own custom assert handlers and to do this I need
to trigger a breakpoint from the code. Is there a way to trigger a
coded stop/breakpoint in xcode?
The Debugging Magic technote <http://developer.apple.com/technotes/tn2004/tn2124.html#SECCORESERVICES
> says this:
Core Services includes a number of routines (for example, Debugger,
DebugStr, and SysBreak) that enter the debugger with a message. If
you set the USERBREAK environment variable to 1, these routines will
send a SIGINT signal to the current process, which causes you to
break into GDB. Xcode has GUI to enabled this facility (the "Break
on Debugger() and DebugStr()" checkbox in the Debugging panel of the
executable inspector [...]).
Cheers,
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