mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 01:00:05 +08:00
docs(debug): add keybinds doc for vimspector
This commit is contained in:
parent
648c5f2f3c
commit
18e3252034
@ -9,7 +9,10 @@ description: "This layer provides debug workflow support in SpaceVim"
|
||||
|
||||
- [Description](#description)
|
||||
- [Install](#install)
|
||||
- [Configuration](#configuration)
|
||||
- [Key bindings](#key-bindings)
|
||||
- [Using vim-debug](#using-vim-debug)
|
||||
- [Using vimspector](#using-vimspector)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
@ -26,8 +29,20 @@ To use this configuration layer, add the following snippet to your custom config
|
||||
name = "debug"
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
Vimspector can be used as the debugger by setting the configuration.
|
||||
|
||||
```toml
|
||||
[[layers]]
|
||||
name = "debug"
|
||||
debugger_plugin = "vimspector"
|
||||
```
|
||||
|
||||
## Key bindings
|
||||
|
||||
### Using vim-debug
|
||||
|
||||
| Key Binding | Description |
|
||||
| ----------- | ---------------------------------------- |
|
||||
| `SPC d l` | launch the debugger |
|
||||
@ -47,3 +62,33 @@ To use this configuration layer, add the following snippet to your custom config
|
||||
key bindings are too long? use `SPC d .` to open the debug transient state:
|
||||
|
||||
![Debug Transient State](https://user-images.githubusercontent.com/13142418/33996076-b03c05bc-e0a5-11e7-90fd-5f31e2703d7e.png)
|
||||
|
||||
### Using vimspector
|
||||
|
||||
| Key Binding | Description |
|
||||
| ----------- | ------------------------------------- |
|
||||
| `SPC d c` | launch-or-continue-debugger |
|
||||
| `SPC d r` | restart-debugger-with-the-same-config |
|
||||
| `SPC d x` | run-to-cursor |
|
||||
| `SPC d p` | pause-debugger |
|
||||
| `SPC d b` | toggle-line-breakpoint |
|
||||
| `SPC d B` | clear-all-breakpoints |
|
||||
| `SPC d o` | step-over |
|
||||
| `SPC d i` | step-into-functions |
|
||||
| `SPC d O` | step-out-of-current-function |
|
||||
| `SPC d u` | move-up-a-frame |
|
||||
| `SPC d d` | move-down-a-frame |
|
||||
| `SPC d k` | terminate-the-debugger |
|
||||
| `SPC d e` | evaluate-cursor-symbol-or-selection |
|
||||
|
||||
**Debug Transient State**
|
||||
|
||||
| Key Binding | Description |
|
||||
| ----------- | ---------------------------- |
|
||||
| `c` | Continue execution |
|
||||
| `u` | Move up a frame |
|
||||
| `d` | Move down a frame |
|
||||
| `o` | step over |
|
||||
| `i` | step into functions |
|
||||
| `O` | step out of current function |
|
||||
| `k` | Terminates the debugger |
|
||||
|
Loading…
Reference in New Issue
Block a user