在Xcode/lldb中移动执行点

Ken*_*Ken 5 xcode ios lldb

有没有办法在调试Xcode/lldb时设置执行点?更具体地说,在点击断点后,手动将执行点移动到另一行代码?

Chi*_*der 13

如果您正在查看使用方法向上或向下移动它,可以单击并将绿色箭头拖动到特定点.所以如果你想在断点之前备份一行.单击生成的绿色箭头并将其向上拖动.如果你跑了,你会再次击中你的断点

  • 在Xcode 9.1中,绿色箭头已更改为绿色汉堡包,并移至右边距. (7认同)

Zor*_*ayr 5

在 Xcode 6 中,您可以使用j lineNumber- 请参阅下面的文档:

(lldb) help j
     Sets the program counter to a new address.  This command takes 'raw' input
     (no need to quote stuff).

Syntax: _regexp-jump [<line>]
_regexp-jump [<+-lineoffset>]
_regexp-jump [<file>:<line>]
_regexp-jump [*<addr>]


'j' is an abbreviation for '_regexp-jump'
Run Code Online (Sandbox Code Playgroud)