diff options
Diffstat (limited to 'doc/vim-go.txt')
-rw-r--r-- | doc/vim-go.txt | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/doc/vim-go.txt b/doc/vim-go.txt index 480b4848..e00dec9b 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -1719,6 +1719,13 @@ Applicable to Neovim and Vim with `terminal` feature only. > let g:go_term_mode = "vsplit" < + *'g:go_term_reuse'* + +Reuse the terminal window when |'g:go_term_enabled'| is set. By default it's +disabled. +> + let g:go_term_reuse = 0 +< *'g:go_term_height'* *'g:go_term_width'* @@ -2242,6 +2249,8 @@ The program will halt on the breakpoint, at which point you can inspect the program state. You can go to the next line with |:GoDebugNext| (<F10>) or step in with |:GoDebugStep| (<F11>). +The program can also be halted with `:GoDebugHalt` (<F6>). + The variable window in the bottom left (`GODEBUG_VARIABLES`) will display all local variables. Struct values are displayed as `{...}`, array/slices as `[4]`. Use <CR> on the variable name to expand the values. @@ -2258,10 +2267,21 @@ the `dlv` process, or |:GoDebugRestart| to recompile the code. *go-debug-commands* DEBUGGER COMMANDS~ -Only |:GoDebugStart|, `:GoDebugTest`, and |:GoDebugBreakpoint| are available -by default. `:GoDebugContinue` becomes available after running `:GoDebugStart` -or `:GoDebugTest`. The rest of the commands and mappings become available -after executing `:GoDebugContinue`. +Only |:GoDebugAttach|, |:GoDebugStart|, |:GoDebugTest|, and +|:GoDebugBreakpoint| are available by default. |:GoDebugContinue| becomes +available after running |:GoDebugAttach|, |:GoDebugStart| or |:GoDebugTest|. +The rest of the commands and mappings become available after executing +|:GoDebugContinue|. + + *:GoDebugAttach* +:GoDebugAttach pid + + Start the debug mode for pid; this does several things: + + * Setup the debug windows according to |'g:go_debug_windows'|. + * Make the `:GoDebug*` commands and `(go-debug-*)` mappings available. + + Use |:GoDebugStop| to stop `dlv` and exit debugging mode. *:GoDebugStart* :GoDebugStart [pkg] [program-args] @@ -2291,6 +2311,14 @@ after executing `:GoDebugContinue`. Stop the program (if running) and restart `dlv` to recompile the package. The current window layout and breakpoints will be left intact. + *:GoDebugHalt* + *(go-debug-halt)* +:GoDebugHalt + + Halt the program. + + Mapped to <F6> by default. + *:GoDebugStop* *(go-debug-stop)* :GoDebugStop |