From ba8de17d3ef19ae149d4598c0226d9630fe50af8 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Tue, 1 Aug 2017 19:23:34 +0900 Subject: [PATCH] update doc --- doc/vim-go.txt | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/doc/vim-go.txt b/doc/vim-go.txt index a85653c7c8..a042861648 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -765,6 +765,42 @@ CTRL-t Surname: "Smith", } < + + *:GoDebugStart* +:GoDebugStart + + Start Go Debugger. This debugger similar to Visual Studio or Eclipse which + has following features: + + * Show stacktrace and Jump + * List local variables + * List function arguments + * Expand values of struct or array/slice + * Show balloon on the symbol + * Show output of stdout/stderr + * Toggle breakpoint + * Stack operation continue/next/stepin/stepout + + To start debugger, type `:GoDebugStart`. If you want to pass arguments to + the program, append arguments following this command: > + + :GoDebugStart -age 18 +< + This may take few seconds. After while compiling your code, You'll see 3 + panes windows. The stacktrace in left side, left bottom in variable list, + command output in bottom. + + You should add breakpoint at the first. Go to somewhere where you want to + break on debugger. Then type to toggle breakpoint. To start command, + type . + + If your program reach the breakpoint immediately, go debugger stop with + the breakpoint. Then, you can go next line or step in . + When the program stop in the debugger, stacktrace and variable list will + be updated with the current value. + Struct value is displayed as '{...}', Array/Slice is displayed like '[4]'. + To expand the values, type on the variable name. + ============================================================================== MAPPINGS *go-mappings*