How to change NSString value while debugging in Xcode?

前端 未结 4 1929
失恋的感觉
失恋的感觉 2020-12-23 13:35

When I\'m stopped at a break point in Xcode, I can see the value of NSString variables. How can I change them? I can change int or double variables, but not NSString.

4条回答
  •  萌比男神i
    2020-12-23 14:15

    For NSError I am using this:

    (lldb) expression aTempError = (NSError*)[[NSError alloc] initWithDomain:@"MANO" code:1 userInfo:nil]
    

提交回复
热议问题