This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+tools/debug
2019-05-15 21:08:21 +03:00
..
img create debug layer 2018-05-12 23:46:18 -04:00
config.el bump year in the copyright headers 2018-10-16 20:27:05 +03:00
funcs.el bump year in the copyright headers 2018-10-16 20:27:05 +03:00
packages.el bump year in the copyright headers 2018-10-16 20:27:05 +03:00
README.org Switch to the new layers generator 2019-05-15 21:08:21 +03:00

debug layer

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

Description

This layer adds interactive debuggers for multiple 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
bb set break
bc clear break
bd delete break
bs disable break
be enable break
c continue
i step into
J jump to current line
o step out
q quit debug
r restart
s step over
S goto cmd buffer
v eval variable