4

Is there any way to edit commands easily in lldb? For example gdb has readline support which means I can use vi keybindings to surf across the command line. Is there something similar for lldb?

1 Answer 1

6

lldb uses editline rather than readline for command line editing. By default, editline comes up in an emacs-like mode, so using the arrow keys or ^a to go the beginning and ^e the end of a line. ^r searches backward in command history. If you're on macOS, Option-left & right arrow to go by word, etc...

editline has a vi mode as well (run man editrc for details). I've actually never used it however, so I don't know how well it works.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.