spacemacs/layers/+tools/debug/README.org
hodge d5c4bb8b9a Add debug layer
modify readme
2017-05-14 13:10:01 -04:00

1.5 KiB

debug layer

/TakeV/spacemacs/media/commit/d5c4bb8b9af2ede210f17e1b4ca82357eea8afd3/layers/+tools/debug/img/debug.png

Description

This layer add debug for mutil language using realgud.

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add debug to the existing dotspacemacs-configuration-layers list in this file.

enable c-c++ debug

To enable debug for c-c++ set the layer variable c-c++-enable-debug to t in the dotfile:

  (setq-default dotspacemacs-configuration-layers
                '((debug :variables c-c++-enable-debug t)))

Key bindings

Leader

Key Binding Description
SPC m d d open cmd buffer

shortkey-mode (c-c++)

Key Binding Description
SPC m d e eval variable
s step over
i step into
b set break
B unset break
o step out
c continue
e eval variable
r restart
q quit debug
S goto cmd buffer

Note: In c++ debug,the real debug will start after input "start" in cmd buffer.