d5c4bb8b9a
modify readme
1.5 KiB
1.5 KiB
debug layer
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.