From 9c52224955b5244a80d2bcba1b5f25052370e822 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 d47b1b9ffa..28a6a6b903 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -761,6 +761,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*