Setting a watchpoint using (lldb) watchpoint set var myvar
will pause the program whenever the variable is written to and print out the change of value to the debugging console.
From using this in the Xcode GUI, I know that it is possible to set breakpoints that execute an action and automatically continue the program afterwards.
Is a similar behaviour possible with watchpoints? Can I set a watchpoint that only prints the change and automatically continues the program execution afterwards?
I actually used a solution close to what Jason described above. It worked for me in XCode 6 and is described in details there: In XCode 6 how can you set a watchpoint without stopping execution?.
Hope this helps.