• 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: Breaking into debugger after program hangs....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Breaking into debugger after program hangs.... (From: John Draper <email@hidden>)
 >Re: Breaking into debugger after program hangs.... (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Breaking into debugger after program hangs....
  • Next by Date: NSMenu delegate broken?
  • Previous by thread: Re: Breaking into debugger after program hangs....
  • Next by thread: Re: Breaking into debugger after program hangs....
  • Index(es):
    • Date
    • Thread