NSZombieEnabled does not work

前端 未结 8 1664
谎友^
谎友^ 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:12

    Is you search Stack Overflow for EXC_BAD_ACCESS, you'll find a number of people with the same problem that you have. The vast majority of the time that you hit this, you are encountering memory issues. If you are following the protocol described here or here, and you're not seeing any reports of messages being sent to released objects on the console, it might be something different.

    Have you tried starting the application in the debugger (Run | Debug - Breakpoints On)? As soon as you hit the EXC_BAD_ACCESS, the debugger should halt. If you look at the backtrace displayed in the debugger (Run | Debugger), it might show you where the error occurred.

提交回复
热议问题