John
John

Reputation: 51

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

Upvotes: 0

Views: 483

Answers (2)

puio
puio

Reputation: 1278

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

Upvotes: 1

Rameez
Rameez

Reputation: 412

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.

Upvotes: 1

Related Questions