NSZombieEnabled does not work

前端 未结 8 1798
谎友^
谎友^ 2020-12-15 07:59

When I set NSZombieEnabled = Yes nothing is written to the console. How can I fix this? Or can you advise me any other tools for an EXC_BAD_ACCESS?

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-15 08:10

    i don't understand how the answer to this question really answers the question..

    i am asking myself the same thing. using xcode4 i have enabled NSZobmieEnabled = YES to halt when i access an object that has been released, instead of crashing with EXC_BAD_ACCESS - which is very helpful.

    the question at hand was:

    "When I set NSZombieEnabled = Yes nothing is written to the console. How can I fix this...".

    simple and straight forward.

    i am experiencing the same issue. xcode halts with the debugger but the console does not produce any message. i would expect something along the lines of:

    "message sent to deallocated instance...".

提交回复
热议问题