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/README.org
hodge d5c4bb8b9a Add debug layer
modify readme
2017-05-14 13:10:01 -04:00

53 lines
1.5 KiB
Org Mode

#+TITLE: debug layer
[[file:img/debug.png]]
* Table of Contents :TOC_4_gh:noexport:
- [[#description][Description]]
- [[#install][Install]]
- [[#enable-c-c-debug][enable c-c++ debug]]
- [[#key-bindings][Key bindings]]
- [[#leader][Leader]]
- [[#shortkey-mode-c-c][shortkey-mode (c-c++)]]
* Description
This layer add debug for mutil language using [[https://github.com/realgud/realgud][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:
#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers
'((debug :variables c-c++-enable-debug t)))
#+END_SRC
* 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.