This answer may help you, it did me.
Quote:
You can do this in the debug console. Say you have NSString* myVar
. In the console, after (gdb), type set myVar = @"My new string"
. If you are using (lldb), then use the equivalent expression expr myVar = @"My new string"
instead.