Documentation: generate new docs (#1185)

This commit is contained in:
Derek Parker 2018-04-17 23:46:55 -07:00 committed by Alessandro Arzilli
parent b9c4a1d68c
commit 38ddb22b68
12 changed files with 113 additions and 45 deletions

@ -14,8 +14,9 @@ Command | Description
[config](#config) | Changes configuration parameters. [config](#config) | Changes configuration parameters.
[continue](#continue) | Run until breakpoint or program termination. [continue](#continue) | Run until breakpoint or program termination.
[disassemble](#disassemble) | Disassembler. [disassemble](#disassemble) | Disassembler.
[down](#down) | Move the current frame down.
[exit](#exit) | Exit the debugger. [exit](#exit) | Exit the debugger.
[frame](#frame) | Executes command on a different frame. [frame](#frame) | Set the current frame, or execute command on a different frame.
[funcs](#funcs) | Print list of functions. [funcs](#funcs) | Print list of functions.
[goroutine](#goroutine) | Shows or changes current goroutine [goroutine](#goroutine) | Shows or changes current goroutine
[goroutines](#goroutines) | List program goroutines. [goroutines](#goroutines) | List program goroutines.
@ -39,6 +40,7 @@ Command | Description
[threads](#threads) | Print out info for every traced thread. [threads](#threads) | Print out info for every traced thread.
[trace](#trace) | Set tracepoint. [trace](#trace) | Set tracepoint.
[types](#types) | Print list of types [types](#types) | Print list of types
[up](#up) | Move the current frame up.
[vars](#vars) | Print package variables. [vars](#vars) | Print package variables.
[whatis](#whatis) | Prints type of an expression. [whatis](#whatis) | Prints type of an expression.
@ -68,7 +70,7 @@ Aliases: bp
## check ## check
Creates a checkpoint at the current position. Creates a checkpoint at the current position.
checkpoint [where] checkpoint [where]
Aliases: checkpoint Aliases: checkpoint
@ -85,7 +87,7 @@ Deletes breakpoint.
## clear-checkpoint ## clear-checkpoint
Deletes checkpoint. Deletes checkpoint.
clear-checkpoint <id> clear-checkpoint <id>
Aliases: clearcheck Aliases: clearcheck
@ -94,7 +96,7 @@ Aliases: clearcheck
Deletes multiple breakpoints. Deletes multiple breakpoints.
clearall [<linespec>] clearall [<linespec>]
If called with the linespec argument it will delete all the breakpoints matching the linespec. If linespec is omitted all breakpoints are deleted. If called with the linespec argument it will delete all the breakpoints matching the linespec. If linespec is omitted all breakpoints are deleted.
@ -102,16 +104,16 @@ If called with the linespec argument it will delete all the breakpoints matching
Set breakpoint condition. Set breakpoint condition.
condition <breakpoint name or id> <boolean expression>. condition <breakpoint name or id> <boolean expression>.
Specifies that the breakpoint or tracepoint should break only if the boolean expression is true. Specifies that the breakpoint or tracepoint should break only if the boolean expression is true.
Aliases: cond Aliases: cond
## config ## config
Changes configuration parameters. Changes configuration parameters.
config -list config -list
Show all configuration parameters. Show all configuration parameters.
config -save config -save
@ -119,17 +121,17 @@ Show all configuration parameters.
Saves the configuration file to disk, overwriting the current configuration file. Saves the configuration file to disk, overwriting the current configuration file.
config <parameter> <value> config <parameter> <value>
Changes the value of a configuration parameter. Changes the value of a configuration parameter.
config substitute-path <from> <to> config substitute-path <from> <to>
config substitute-path <from> config substitute-path <from>
Adds or removes a path substitution rule. Adds or removes a path substitution rule.
config alias <command> <alias> config alias <command> <alias>
config alias <alias> config alias <alias>
Defines <alias> as an alias to <command> or removes an alias. Defines <alias> as an alias to <command> or removes an alias.
@ -144,21 +146,34 @@ Disassembler.
[goroutine <n>] [frame <m>] disassemble [-a <start> <end>] [-l <locspec>] [goroutine <n>] [frame <m>] disassemble [-a <start> <end>] [-l <locspec>]
If no argument is specified the function being executed in the selected stack frame will be executed. If no argument is specified the function being executed in the selected stack frame will be executed.
-a <start> <end> disassembles the specified address range -a <start> <end> disassembles the specified address range
-l <locspec> disassembles the specified function -l <locspec> disassembles the specified function
Aliases: disass Aliases: disass
## down
Move the current frame down.
down [<m>]
down [<m>] <command>
Move the current frame down by <m>. The second form runs the command on the given frame.
## exit ## exit
Exit the debugger. Exit the debugger.
Aliases: quit q Aliases: quit q
## frame ## frame
Executes command on a different frame. Set the current frame, or execute command on a different frame.
frame <frame index> <command>. frame <m>
frame <m> <command>
The first form sets frame used by subsequent commands such as "print" or "set".
The second form runs the command on the given frame.
## funcs ## funcs
@ -191,7 +206,7 @@ Print out info for every goroutine. The flag controls what information is shown
-u displays location of topmost stackframe in user code -u displays location of topmost stackframe in user code
-r displays location of topmost stackframe (including frames inside private runtime functions) -r displays location of topmost stackframe (including frames inside private runtime functions)
-g displays location of go instruction that created the goroutine -g displays location of go instruction that created the goroutine
If no flag is specified the default is -u. If no flag is specified the default is -u.
@ -199,7 +214,7 @@ If no flag is specified the default is -u.
Prints the help message. Prints the help message.
help [command] help [command]
Type "help" followed by the name of a command for more information about it. Type "help" followed by the name of a command for more information about it.
Aliases: h Aliases: h
@ -211,7 +226,7 @@ Show source code.
Show source around current point or provided linespec. Show source around current point or provided linespec.
Aliases: ls Aliases: ls l
## locals ## locals
Print local variables. Print local variables.
@ -232,7 +247,7 @@ Aliases: n
Executes a command when a breakpoint is hit. Executes a command when a breakpoint is hit.
on <breakpoint name or id> <command>. on <breakpoint name or id> <command>.
Supported commands: print, stack and goroutine) Supported commands: print, stack and goroutine)
@ -249,14 +264,14 @@ Aliases: p
Print contents of CPU registers. Print contents of CPU registers.
regs [-a] regs [-a]
Argument -a shows more registers. Argument -a shows more registers.
## restart ## restart
Restart process from a checkpoint or event. Restart process from a checkpoint or event.
restart [event number or checkpoint id] restart [event number or checkpoint id]
Aliases: r Aliases: r
@ -291,7 +306,7 @@ If regex is specified only the source files matching it will be returned.
Print stack trace. Print stack trace.
[goroutine <n>] [frame <m>] stack [<depth>] [-full] [-g] [-s] [-offsets] [goroutine <n>] [frame <m>] stack [<depth>] [-full] [-g] [-s] [-offsets]
-full every stackframe is decorated with the value of its local variables and arguments. -full every stackframe is decorated with the value of its local variables and arguments.
-offsets prints frame offset of each frame -offsets prints frame offset of each frame
@ -327,7 +342,7 @@ Print out info for every traced thread.
Set tracepoint. Set tracepoint.
trace [name] <linespec> trace [name] <linespec>
A tracepoint is a breakpoint that does not stop the execution of the program, instead when the tracepoint is hit a notification is displayed. See [Documentation/cli/locspec.md](//github.com/derekparker/delve/tree/master/Documentation/cli/locspec.md) for the syntax of linespec. A tracepoint is a breakpoint that does not stop the execution of the program, instead when the tracepoint is hit a notification is displayed. See [Documentation/cli/locspec.md](//github.com/derekparker/delve/tree/master/Documentation/cli/locspec.md) for the syntax of linespec.
See also: "help on", "help cond" and "help clear" See also: "help on", "help cond" and "help clear"
@ -342,6 +357,15 @@ Print list of types
If regex is specified only the types matching it will be returned. If regex is specified only the types matching it will be returned.
## up
Move the current frame up.
up [<m>]
up [<m>] <command>
Move the current frame up by <m>. The second form runs the command on the given frame.
## vars ## vars
Print package variables. Print package variables.
@ -352,7 +376,7 @@ If regex is specified only package variables with a name matching it will be ret
## whatis ## whatis
Prints type of an expression. Prints type of an expression.
whatis <expression>. whatis <expression>.

@ -31,7 +31,11 @@ Pass flags to the program you are debugging using `--`, for example:
--headless Run debug server only, in headless mode. --headless Run debug server only, in headless mode.
--init string Init file, executed by the terminal client. --init string Init file, executed by the terminal client.
-l, --listen string Debugging server listen address. (default "localhost:0") -l, --listen string Debugging server listen address. (default "localhost:0")
--log Enable debugging server logging. --log string Comma separated list of components that should produce debug output, possible values:
debugger Log debugger commands
gdbwire Log connection to gdbserial backend
lldbout Copy output from debugserver/lldb to standard output
(default "false")
--wd string Working directory for running the program. (default ".") --wd string Working directory for running the program. (default ".")
``` ```
@ -47,4 +51,4 @@ Pass flags to the program you are debugging using `--`, for example:
* [dlv trace](dlv_trace.md) - Compile and begin tracing program. * [dlv trace](dlv_trace.md) - Compile and begin tracing program.
* [dlv version](dlv_version.md) - Prints version. * [dlv version](dlv_version.md) - Prints version.
###### Auto generated by spf13/cobra on 25-Jan-2018 ###### Auto generated by spf13/cobra on 17-Apr-2018

@ -31,11 +31,15 @@ dlv attach pid [executable]
--headless Run debug server only, in headless mode. --headless Run debug server only, in headless mode.
--init string Init file, executed by the terminal client. --init string Init file, executed by the terminal client.
-l, --listen string Debugging server listen address. (default "localhost:0") -l, --listen string Debugging server listen address. (default "localhost:0")
--log Enable debugging server logging. --log string Comma separated list of components that should produce debug output, possible values:
debugger Log debugger commands
gdbwire Log connection to gdbserial backend
lldbout Copy output from debugserver/lldb to standard output
(default "false")
--wd string Working directory for running the program. (default ".") --wd string Working directory for running the program. (default ".")
``` ```
### SEE ALSO ### SEE ALSO
* [dlv](dlv.md) - Delve is a debugger for the Go programming language. * [dlv](dlv.md) - Delve is a debugger for the Go programming language.
###### Auto generated by spf13/cobra on 25-Jan-2018 ###### Auto generated by spf13/cobra on 17-Apr-2018

@ -26,11 +26,15 @@ dlv connect addr
--headless Run debug server only, in headless mode. --headless Run debug server only, in headless mode.
--init string Init file, executed by the terminal client. --init string Init file, executed by the terminal client.
-l, --listen string Debugging server listen address. (default "localhost:0") -l, --listen string Debugging server listen address. (default "localhost:0")
--log Enable debugging server logging. --log string Comma separated list of components that should produce debug output, possible values:
debugger Log debugger commands
gdbwire Log connection to gdbserial backend
lldbout Copy output from debugserver/lldb to standard output
(default "false")
--wd string Working directory for running the program. (default ".") --wd string Working directory for running the program. (default ".")
``` ```
### SEE ALSO ### SEE ALSO
* [dlv](dlv.md) - Delve is a debugger for the Go programming language. * [dlv](dlv.md) - Delve is a debugger for the Go programming language.
###### Auto generated by spf13/cobra on 25-Jan-2018 ###### Auto generated by spf13/cobra on 17-Apr-2018

@ -30,11 +30,15 @@ dlv core <executable> <core>
--headless Run debug server only, in headless mode. --headless Run debug server only, in headless mode.
--init string Init file, executed by the terminal client. --init string Init file, executed by the terminal client.
-l, --listen string Debugging server listen address. (default "localhost:0") -l, --listen string Debugging server listen address. (default "localhost:0")
--log Enable debugging server logging. --log string Comma separated list of components that should produce debug output, possible values:
debugger Log debugger commands
gdbwire Log connection to gdbserial backend
lldbout Copy output from debugserver/lldb to standard output
(default "false")
--wd string Working directory for running the program. (default ".") --wd string Working directory for running the program. (default ".")
``` ```
### SEE ALSO ### SEE ALSO
* [dlv](dlv.md) - Delve is a debugger for the Go programming language. * [dlv](dlv.md) - Delve is a debugger for the Go programming language.
###### Auto generated by spf13/cobra on 25-Jan-2018 ###### Auto generated by spf13/cobra on 17-Apr-2018

@ -37,11 +37,15 @@ dlv debug [package]
--headless Run debug server only, in headless mode. --headless Run debug server only, in headless mode.
--init string Init file, executed by the terminal client. --init string Init file, executed by the terminal client.
-l, --listen string Debugging server listen address. (default "localhost:0") -l, --listen string Debugging server listen address. (default "localhost:0")
--log Enable debugging server logging. --log string Comma separated list of components that should produce debug output, possible values:
debugger Log debugger commands
gdbwire Log connection to gdbserial backend
lldbout Copy output from debugserver/lldb to standard output
(default "false")
--wd string Working directory for running the program. (default ".") --wd string Working directory for running the program. (default ".")
``` ```
### SEE ALSO ### SEE ALSO
* [dlv](dlv.md) - Delve is a debugger for the Go programming language. * [dlv](dlv.md) - Delve is a debugger for the Go programming language.
###### Auto generated by spf13/cobra on 25-Jan-2018 ###### Auto generated by spf13/cobra on 17-Apr-2018

@ -31,11 +31,15 @@ dlv exec <path/to/binary>
--headless Run debug server only, in headless mode. --headless Run debug server only, in headless mode.
--init string Init file, executed by the terminal client. --init string Init file, executed by the terminal client.
-l, --listen string Debugging server listen address. (default "localhost:0") -l, --listen string Debugging server listen address. (default "localhost:0")
--log Enable debugging server logging. --log string Comma separated list of components that should produce debug output, possible values:
debugger Log debugger commands
gdbwire Log connection to gdbserial backend
lldbout Copy output from debugserver/lldb to standard output
(default "false")
--wd string Working directory for running the program. (default ".") --wd string Working directory for running the program. (default ".")
``` ```
### SEE ALSO ### SEE ALSO
* [dlv](dlv.md) - Delve is a debugger for the Go programming language. * [dlv](dlv.md) - Delve is a debugger for the Go programming language.
###### Auto generated by spf13/cobra on 25-Jan-2018 ###### Auto generated by spf13/cobra on 17-Apr-2018

@ -30,11 +30,15 @@ dlv replay [trace directory]
--headless Run debug server only, in headless mode. --headless Run debug server only, in headless mode.
--init string Init file, executed by the terminal client. --init string Init file, executed by the terminal client.
-l, --listen string Debugging server listen address. (default "localhost:0") -l, --listen string Debugging server listen address. (default "localhost:0")
--log Enable debugging server logging. --log string Comma separated list of components that should produce debug output, possible values:
debugger Log debugger commands
gdbwire Log connection to gdbserial backend
lldbout Copy output from debugserver/lldb to standard output
(default "false")
--wd string Working directory for running the program. (default ".") --wd string Working directory for running the program. (default ".")
``` ```
### SEE ALSO ### SEE ALSO
* [dlv](dlv.md) - Delve is a debugger for the Go programming language. * [dlv](dlv.md) - Delve is a debugger for the Go programming language.
###### Auto generated by spf13/cobra on 25-Jan-2018 ###### Auto generated by spf13/cobra on 17-Apr-2018

@ -26,11 +26,15 @@ dlv run
--headless Run debug server only, in headless mode. --headless Run debug server only, in headless mode.
--init string Init file, executed by the terminal client. --init string Init file, executed by the terminal client.
-l, --listen string Debugging server listen address. (default "localhost:0") -l, --listen string Debugging server listen address. (default "localhost:0")
--log Enable debugging server logging. --log string Comma separated list of components that should produce debug output, possible values:
debugger Log debugger commands
gdbwire Log connection to gdbserial backend
lldbout Copy output from debugserver/lldb to standard output
(default "false")
--wd string Working directory for running the program. (default ".") --wd string Working directory for running the program. (default ".")
``` ```
### SEE ALSO ### SEE ALSO
* [dlv](dlv.md) - Delve is a debugger for the Go programming language. * [dlv](dlv.md) - Delve is a debugger for the Go programming language.
###### Auto generated by spf13/cobra on 25-Jan-2018 ###### Auto generated by spf13/cobra on 17-Apr-2018

@ -37,11 +37,15 @@ dlv test [package]
--headless Run debug server only, in headless mode. --headless Run debug server only, in headless mode.
--init string Init file, executed by the terminal client. --init string Init file, executed by the terminal client.
-l, --listen string Debugging server listen address. (default "localhost:0") -l, --listen string Debugging server listen address. (default "localhost:0")
--log Enable debugging server logging. --log string Comma separated list of components that should produce debug output, possible values:
debugger Log debugger commands
gdbwire Log connection to gdbserial backend
lldbout Copy output from debugserver/lldb to standard output
(default "false")
--wd string Working directory for running the program. (default ".") --wd string Working directory for running the program. (default ".")
``` ```
### SEE ALSO ### SEE ALSO
* [dlv](dlv.md) - Delve is a debugger for the Go programming language. * [dlv](dlv.md) - Delve is a debugger for the Go programming language.
###### Auto generated by spf13/cobra on 25-Jan-2018 ###### Auto generated by spf13/cobra on 17-Apr-2018

@ -39,11 +39,15 @@ dlv trace [package] regexp
--headless Run debug server only, in headless mode. --headless Run debug server only, in headless mode.
--init string Init file, executed by the terminal client. --init string Init file, executed by the terminal client.
-l, --listen string Debugging server listen address. (default "localhost:0") -l, --listen string Debugging server listen address. (default "localhost:0")
--log Enable debugging server logging. --log string Comma separated list of components that should produce debug output, possible values:
debugger Log debugger commands
gdbwire Log connection to gdbserial backend
lldbout Copy output from debugserver/lldb to standard output
(default "false")
--wd string Working directory for running the program. (default ".") --wd string Working directory for running the program. (default ".")
``` ```
### SEE ALSO ### SEE ALSO
* [dlv](dlv.md) - Delve is a debugger for the Go programming language. * [dlv](dlv.md) - Delve is a debugger for the Go programming language.
###### Auto generated by spf13/cobra on 25-Jan-2018 ###### Auto generated by spf13/cobra on 17-Apr-2018

@ -26,11 +26,15 @@ dlv version
--headless Run debug server only, in headless mode. --headless Run debug server only, in headless mode.
--init string Init file, executed by the terminal client. --init string Init file, executed by the terminal client.
-l, --listen string Debugging server listen address. (default "localhost:0") -l, --listen string Debugging server listen address. (default "localhost:0")
--log Enable debugging server logging. --log string Comma separated list of components that should produce debug output, possible values:
debugger Log debugger commands
gdbwire Log connection to gdbserial backend
lldbout Copy output from debugserver/lldb to standard output
(default "false")
--wd string Working directory for running the program. (default ".") --wd string Working directory for running the program. (default ".")
``` ```
### SEE ALSO ### SEE ALSO
* [dlv](dlv.md) - Delve is a debugger for the Go programming language. * [dlv](dlv.md) - Delve is a debugger for the Go programming language.
###### Auto generated by spf13/cobra on 25-Jan-2018 ###### Auto generated by spf13/cobra on 17-Apr-2018