Xcode debug issue (breakpoint)
I am writing an application iOS
in Objective-C
iOS 8.4 with Xcode 6.4. I have a variable (actually an element in an array) changing in unexpected ways.
To see what is going on, I would like to be able to pause the program when a change occurs (or has just happened) a change in a variable using some sort of "special break point"
.
Is it possible, if YES, how?
+3
source to share
1 answer
What you want is a Watchpoint (see Configuring Watchpoints here ).
Basically, they control the memory for writing and interrupt the program when this happens.
I think you can only install them from the debug console, not from the Xcode interface:
(lldb) watchpoint set variable myinstancevar
or
(lldb) w s v myinstancevar
+3
source to share