Skip to content

Instantly share code, notes, and snippets.

@stavxyz
Created May 3, 2019 13:55
Show Gist options
  • Save stavxyz/9c13f8ed581e9fd98f133b3daaa1add8 to your computer and use it in GitHub Desktop.
Save stavxyz/9c13f8ed581e9fd98f133b3daaa1add8 to your computer and use it in GitHub Desktop.
how to use delve

dlv debug compiles your program with optimizations disabled, starts and attaches to it.

By default, with no arguments, Delve will compile the 'main' package in the current directory, and begin to debug it. Alternatively you can specify a package name and Delve will compile that package instead, and begin a new debug session.

(similar to go run ...)

dlv debug
(dlv) funcs packagename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment