Re: Stopping on Debugger()
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