• 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: Stopping on Debugger()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stopping on Debugger()


  • Subject: Re: Stopping on Debugger()
  • From: Peter Mulholland <email@hidden>
  • Date: Tue, 27 Nov 2007 22:16:50 +0000

Hello David,

Tuesday, November 27, 2007, 6:56:20 PM, you wrote:

> I've got an assert function that can call Debugger(). In the old
> days, this would drop into a debugger. Doesn't seem to any more
> (Xcode 3.0).

> Is there a way to do so? Or do I just set a breakpoint at Debugger
> (which seems oddly ugly).

It's a hack but you can use inline asm.

On Intel, use asm { int 3 }
On PPC, use asm { trap }

I use these on a custom assert() function too.

Be aware that if you leave those in a Release build, they will
effectively cause a crash.

--
Best regards,
 Peter                            mailto:email@hidden

 _______________________________________________
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

References: 
 >Stopping on Debugger() (From: David Dunham <email@hidden>)

  • Prev by Date: Re: Problem building for 10.2.8 under Leopard
  • Next by Date: Re: how to link an object from a different project
  • Previous by thread: Re: Stopping on Debugger()
  • Next by thread: Xcode 2.5 linker undefined symbols
  • Index(es):
    • Date
    • Thread