spacemacs/layers/+tools/debug
2018-05-12 23:59:50 -04:00
..
img create debug layer 2018-05-12 23:46:18 -04:00
config.el create debug layer 2018-05-12 23:46:18 -04:00
funcs.el Sort packages alphabetically and add spacemacs function prefix 2018-05-12 23:59:50 -04:00
packages.el Sort packages alphabetically and add spacemacs function prefix 2018-05-12 23:59:50 -04:00
README.org create debug layer 2018-05-12 23:46:18 -04:00

debug layer

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

Description

This layer adds interactive debuggers for mulitple languages using realgud.

Features:

  • Modern rewrite of the Emacs GUD debugger family
  • Visual interface including breakpoint and line indicators
  • Advanced features like stack frame navigation and mouse support
  • Extensible framework for adding your own external debuggers

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 additional debuggers

Language specific debuggers are added by the respective layers. If you want to add additional debuggers, add them to the debug-additional-debuggers variable. Make sure that your debugger is compatible by checking here.

  (setq-default dotspacemacs-configuration-layers
                '((debug :variables debug-additional-debuggers '("remake"))))

Key bindings

Major Mode

Key Binding Description
SPC m d d open cmd buffer

Debugger

Key Binding Description
s step over
i step into
o step out
c continue
J jump to current line
e eval variable
r restart
q quit debug
S goto cmd buffer
bb set break
bc clear break
bd delete break
bs disable break
be enable break