Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set a break on objc_weak_error

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.

like image 436
KaasCoder Avatar asked Apr 04 '17 14:04

KaasCoder


1 Answers

You need to add Symbolic Breakpoint: enter image description here

like image 61
Sergey Avatar answered Oct 25 '22 16:10

Sergey