如何使用Voltron自定义LLDB的视图?

时间:2016-02-23 13:13:35

标签: debugging terminal customization lldb

我有(voltron)LLDB。寄存器窗口,堆栈等单独打开。如何自定义窗口让他们一起安顿下来,如何在图片上?我知道有必要使用tmuxinator。 enter image description here

1 个答案:

答案 0 :(得分:4)

我会尝试描述每一步。首先,你需要安装voltron,如果你还没有这样做的话。详细说明https://github.com/snare/voltron

接下来,安装tmux。我用过自制软件。

brew install tmux

为了获得视图,如图所示,您应该自定义tmuxinator(更多信息请https://github.com/tmuxinator/tmuxinator)。

在终端写命令

echo $EDITOR
export EDITR='vim'
tmuxinator new voltron

您应该自定义.yml file。我使用了voltron作者的设置,但是YAML非常关注在哪里使用了多少空间(感谢https://github.com/ethagnawl)。要编辑voltron.yml,我确实使用了'i'按钮来保存Esc'Z'

# ~/.tmuxinator/voltron.yml
name: voltron
root: ~/
windows:
  # two spaces
  - madhax:
      # four spaces
      layout: 15a8,169x41,0,0{147x41,0,0[147x13,0,0{81x13,0,0,60,65x13,82,0,61},147x19,0,14,62,147x7,0,34{89x7,0,34,63,57x7,90,34,64}],21x41,148,0,65}
      panes:
        # two spaces
        - voltron view disasm
        - voltron view bp
        - lldb
        - voltron view stack
        - voltron view bt
        - voltron view reg

使用以下命令运行tmux:

tmuxinator start voltron