【问题标题】:Key mapping in LLDBLLDB 中的键映射
【发布时间】:2020-11-19 10:17:05
【问题描述】:

有没有办法在 LLDB 中指定键映射?类似于Key mapping in GDB

【问题讨论】:

    标签: keyboard-shortcuts lldb key-bindings keymapping


    【解决方案1】:

    原来 LLDB 使用 libedit(又名 Editline),类似于使用 GNU Readline 的 GDB。所以我们用~/.editrc代替~/.inputrc。我找不到官方手册,但 Debian 手册页 editrc(5)editline(7) 在这里很有帮助。示例配置:

    bind "\e[5~" ed-search-prev-history # PgUp
    bind "\e[6~" ed-search-next-history # PgDn
    

    【讨论】:

      猜你喜欢
      • 2011-11-18
      • 1970-01-01
      • 1970-01-01
      • 2016-12-13
      • 2010-12-13
      • 2019-07-23
      • 2020-08-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多