delve/Documentation/usage
Hyang-Ah Hana Kim 26e7f67cc4
cmd/dlv: dlv version --verbose (#2615)
* cmd/dlv: dlv version --verbose

That prints out runtime/debug.BuildInfo read from the dlv binary.
Users can retrieve the same info using `go version -m <path_to_dlv>`
but I think it is convenient to have.

If dlv was built from cloned delve repo:

```
$ ./dlv version -v
Delve Debugger
Version: 1.7.0
Build: $Id: e353a65161e6ed74952b96bbb62ebfc56090832b $
Build Details: go1.16.5
 mod    github.com/go-delve/delve       (devel)
 dep    github.com/cosiner/argv v0.1.0  h1:BVDiEL32lwHukgJKP87btEPenzrrHUjajs/8yzaqcXg=
...
```

If dlv was built with `go install github.com/go-delve/delve@latest`
with go1.16+, or
`GO111MODULE=on go get github.com/go-delve/delve@latest`
from a clean main module:

```
$ ./dlv version -v
Delve Debugger
Version: 1.7.0
Build: $Id: e353a65161e6ed74952b96bbb62ebfc56090832b $
Build Details: go1.16.5
 mod    github.com/go-delve/delve       v1.7.0
 dep    github.com/cosiner/argv v0.1.0  h1:BVDiEL32lwHukgJKP87btEPenzrrHUjajs/8yzaqcXg=
...
```

* remove an accidentally added bogus test
2021-07-27 09:38:48 -07:00
..
dlv_attach.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
dlv_backend.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
dlv_connect.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
dlv_core.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
dlv_dap.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
dlv_debug.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
dlv_exec.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
dlv_log.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
dlv_redirect.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
dlv_replay.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
dlv_run.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
dlv_test.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
dlv_trace.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
dlv_version.md cmd/dlv: dlv version --verbose (#2615) 2021-07-27 09:38:48 -07:00
dlv.md all: update github.com/spf13/cobra to v1.1.3 (#2572) 2021-07-22 11:05:37 -07:00
README.md docs: Move wiki docs into Documentation dir 2016-02-19 10:47:46 -08:00

Using Delve

You can invoke Delve in multiple ways, depending on your usage needs. Delve makes every attempt to be user-friendly, ensuring the user has to do the least amount of work possible to begin debugging their program.

Refer to the main usage document to further explore commands.