skip to Main Content

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).

2

Answers


  1. Type Ctrl R and then type part of the command you want. It’ll display the first matching command. Keep typing Ctrl R and it will cycle through previous matching commands.

    Login or Signup to reply.
  2. Use up arrow in the LLDB command prompt. It works similar to Terminal in that regard.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search