How to set a break on objc_weak_error

3k views Asked by At

In my app I sometimes get this error:

objc[3899]: __weak variable at 0x610000056bd0 holds 0x10003 instead of 0x610000302640. This is probably incorrect use of objc_storeWeak() and objc_loadWeak(). Break on objc_weak_error to debug.

How do I set a break on "objc_weak_error". Should I set it like this? enter image description here Probably not, I tried with and without quotation marks. As I get no break when the error occurs something is not right.

1

There are 1 answers

1
Sergey On BEST ANSWER

You need to add Symbolic Breakpoint: enter image description here