Search code examples
xcodelldb

Call the previous command in lldb inside Xcode


I have a basic question on lldb in Xcode. When using lldb in Xcode, how you guys call the command previously executed ?

Typing the same command every time is very frustrated to me, and
now looking the way to call them in efficient way.

I know "command history" will list the command with the number,
and the $ will execute the command.

But is there something similar like ctrl-p/ctrl-n or ctrl-r in bash to show or search the previous commands ?
(lldb command running on terminal (not build-in lldb inside
Xcode) can do this.)

I'm using Xcode version 11.5(11E608c).


Solution

  • Use up arrow in the LLDB command prompt. It works similar to Terminal in that regard.