[SOLVED] Re: NSHangOnUncaughtException does not work ?
[SOLVED] Re: NSHangOnUncaughtException does not work ?
- Subject: [SOLVED] Re: NSHangOnUncaughtException does not work ?
- From: Aurélien Hugelé <email@hidden>
- Date: Tue, 30 Mar 2004 19:54:02 +0200
On 30 Mar 2004, at 10:43, Aurilien Hugeli wrote:
hi !
thanks for you amswer, it really seems to be that :D
the only problem is that i hate GDB in CLI... of course i always use
GDB in XCode...
do your "future breakpoint" trick works inside XCode ?
i have read gdb help, it seems to be the "future-break" command !
(little description snippet from help : future-break -- Set breakpoint
at expression:"
i have tried in CLI, as you said, GDB offer me 4 choices around the
word "raise" but in XCode it does not offer me any choice, it only
accepts "future-break raise"...
is there a way to add these future-breakpoint *in XCode*, and to make
it automatic at each launch as you have done ?
thanks to help me, this will save a LOT OF TIME to anyone doing cocoa
stuff seriously ! :D
ok this now works thank to Oleg !
just run GDB in XCode, run the program in xcode normally.
once you program is launched (waiting for user event for example...),
configure gdb like this :
future-break raise
gdb then offers you several choice (it has found several raise symbol)
but only one seems usefull :
the one matching [NSException raise], so type the number matching this
choice.
now execute the steps that are known to raise an exception (in YOUR
code or even in the apple frameworks...), GDB stops at the instruction
that causes the exception ! you can see the full call stack, the state
of variables etc !
i find this incredibly usefull !
hope this helps !
PS : if you have an exception at launch of your program, just set a
normal breakpoint at the first line of the main ;)
PS 2 : so in fact NSHangOnUncaughtException "YES" does not work at
all...
PS 3 : in conjunction with NSZombieEnabled, you can add future-break
methodSignatureForSelector and select '-[_NSZombie
methodSignatureForSelector:]', like this once you try to message a
deallocated object, the debugguer will show you WHERE !
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.