• 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: Coded breakpoint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Coded breakpoint
      • From: Jim Ingham <email@hidden>
References: 
 >Coded breakpoint (From: William Kitching <email@hidden>)

  • Prev by Date: Coded breakpoint
  • Next by Date: Re: Coded breakpoint
  • Previous by thread: Coded breakpoint
  • Next by thread: Re: Coded breakpoint
  • Index(es):
    • Date
    • Thread