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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With