Is it possible to change the BOOL value during debugging in Xcode?

Is it possible to change the BOOL value from true to false or vice versa while I'm in debug mode?

+3
source share
3 answers

In the Xcode debugger, where it shows local var values, you can double-click on the value and edit it while you are at a breakpoint. It can be faster than printing everything on the console.

+3
source

With the LLDB debugger:

If you run your code and stop at that breakpoint, you can simply enter:

expr myString = @"New string" expr myBooleanValue = NO

and etc.

+3
source

, , BOOL var = NO; , (gdb) set var = YES, . , po var .

0

All Articles