How to change variables value while debugging with LLDB in Xcode?

前端 未结 3 490
南笙
南笙 2020-11-30 16:28

In Xcode, GDB allows you to change local variables while debugging (see how to change NSString value while debugging in XCode?). Does LLDB offer a similar functionality? If

3条回答
  •  春和景丽
    2020-11-30 17:04

    If you are using Xcode 10 or 11 put the breakpoint properly after initialised to the required variable then you can change your variable using po myString = "Hello World" easily.

提交回复
热议问题