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

Dia*_*ana 3 debugging terminal customization lldb

我有(voltron)用于 LLDB。寄存器、堆栈等的窗口单独打开。如何自定义窗口,让他们一起安顿下来,如何在图片上?我知道有必要使用 tmuxinator。 在此处输入图片说明

Dia*_*ana 5

我将尝试描述每个步骤。首先,您需要安装 voltron,如果您还没有安装的话。详细说明在这里https://github.com/snare/voltron

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

brew install tmux
Run Code Online (Sandbox Code Playgroud)

为了获得像图片一样的视图,您应该自定义 tmuxinator (更多信息在这里https://github.com/tmuxinator/tmuxinator)。

在终端写命令

echo $EDITOR
export EDITR='vim'
tmuxinator new voltron
Run Code Online (Sandbox Code Playgroud)

您应该自定义.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
Run Code Online (Sandbox Code Playgroud)

使用以下命令运行 tmux:

tmuxinator start voltron 
Run Code Online (Sandbox Code Playgroud)