Re: Breaking into debugger after program hangs....
Re: Breaking into debugger after program hangs....
- Subject: Re: Breaking into debugger after program hangs....
- From: j o a r <email@hidden>
- Date: Thu, 28 Apr 2005 12:48:51 +0200
On 2005-04-28, at 12.40, Ondra Cada wrote:
Is there a way to cause the application to break at a breakpoint
when I try and send a message to a de-allocated object?
I set NSZombieEnabled = YES, and I got...
Program received signal: "EXC_BAD_ACCESS".
Does not feel right, the problem would be elsewhere. If zombies
enabled, the program does not crash this way. It would report what
happened.
Are you certain that you set the environmental variable properly?
Then, the tech note says... You can use GDB to set a breakpoint on
-[_NSZombie methodSignatureForSelector:] to further debug this sort
of problem.
Before, of course. What's the point of setting a breakpoint *after*
the code crashed?
An easy easy way to set this symbolic breakpoint is to hit the
breakpoints toolbar button in the Xcode debugger window, create a new
breakpoint, and paste in "-[_NSZombie methodSignatureForSelector:]"
(without quotes).
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden