Is it possible to change the value of the BOOL from true to false or vice-versa while I'm in debugging mode?
In the Xcode debugger where it shows the local var values you can double-click on a value and edit it while you're stopped at a breakpoint too. This can be faster than typing the whole thing in the console.
expr var = false
(not NO) will do it with LLDB –
Archivist With LLDB debugger:
If you run your code and stop on that break point, you can just type:
expr myString = @"New string"
expr myBooleanValue = NO
etc.
In the Xcode debugger where it shows the local var values you can double-click on a value and edit it while you're stopped at a breakpoint too. This can be faster than typing the whole thing in the console.
expr var = false
(not NO) will do it with LLDB –
Archivist I think that you can, if you have BOOL var = NO;
in the console, after (gdb), type set var = YES
, for example. You can verify the value by entering po var
into the console.
p
instead of po
–
Admiral © 2022 - 2024 — McMap. All rights reserved.