Re: Frustrating Cocoa bug



In article <gqk7j26rcbh.fsf@xxxxxxxxxxxxx>,
Tord Kallqvist Romstad <romstad@xxxxxxxxxxx> wrote:

Sean McBride <cwatson@xxxxxxx> writes:

In article <gqk3bcykg0k.fsf@xxxxxxxxxxxxx>,
Tord Kallqvist Romstad <romstad@xxxxxxxxxxx> wrote:

You could try to set NSZombieEnabled.

Thanks, I didn't know about NSZombieEnabled. It looks like a nice
tool for debugging this kind of problem. But where do I look for
error messages? I don't see anything unusual in XCode's "Run Log"
window after setting NSZombieEnabled=YES in the program's
environment. The output of my own NSLog() statements is all that
appears, and the program seems to behave in exactly the same way as
with NSZombieEnabled=NO.

<http://developer.apple.com/technotes/tn2004/tn2124.html#SECFOUNDATION>

Yes, I found that technote. Unfortunately, it doesn't answer my
question of where to look for error messages (unless I am missing
something). When I set NSZombieEnabled to YES, no new error messages
are printed to stderr or the system log, so clearly they must be sent
somewhere else.

"any attempt to interact with a freed object will raise an exception"
.... "You can use GDB to set a breakpoint on -[_NSZombie
methodSignatureForSelector:] to further debug this sort of problem"

No messages are logged. Basically you enable it and then run in the
debugger.
.



Relevant Pages

  • Re: Frustrating Cocoa bug
    ... Tord Kallqvist Romstad wrote: ... tool for debugging this kind of problem. ... question of where to look for error messages (unless I am missing ... are printed to stderr or the system log, so clearly they must be sent ...
    (comp.sys.mac.programmer.misc)
  • Re: Why does this code not work?
    ... messages is not a terribly good idea when you're debugging a script... ... enable the error messages. ... Take a look at the FAQ: ... and the Firefox/Firebug combination) ...
    (comp.lang.javascript)
  • Re: IISState - Runtime error 203 "This thread is blocked by a Mess
    ... This is my first attempt at debugging ... anything like this, and prior to posting my issue here, I learned quite a lot ... such similar error messages. ...
    (microsoft.public.inetserver.iis)
  • Re: Frustrating Cocoa bug
    ... Tord Kallqvist Romstad wrote: ... Yes, I found that technote. ... When I set NSZombieEnabled to YES, no new error messages ... all other uncaught exceptions are logged ... ...
    (comp.sys.mac.programmer.misc)
  • Re: How do i remove this Default Error Message
    ... Did you unload the application after making these changes? ... > was to see the real error messages and the line number. ... > In that the first two options under Debugging Flags namely ... > a) Enable ASP Server-side debugging ...
    (microsoft.public.inetserver.iis)

Loading