Gdlv is a graphical frontend to Delve for Linux, Windows and macOS.
First install the current version of Delve, following Delve's install instructions.
Once Delve is installed, clone the repository and use go install
to install gdlv:
$ git clone https://github.com/aarzilli/gdlv
$ cd gdlv
$ go install
If you are on Go 1.16 or later you can also use the new global install command, without cloning the repository first:
$ go install github.com/aarzilli/gdlv@latest
Use Ctrl+plus and Ctrl+minus, or config zoom 1.5
to change font size. See help
for a list of available commands.
On Linux and Windows gdlv uses shiny to draw its window and receive mouse and keyboard input from the Operating System. On macOS gio is used instead. This behavior can be changed using build tags:
go install -tags=nucular_gio github.com/aarzilli/gdlv@latest
will force gdlv to use nucular_gio everywhere, conversely -tags=nucular_shiny
will select the shiny backend on macOS. Additionally, on macOS, -tags=nucular_shiny,metal
can be used to make shiny draw using the metal API.
- Added way to see captured variables inside function closures
- Function names in the stacktrace window is shortened by default
- Add next-instruction command
- Make the text in the variables window selectable
- Miscellaneous bug fixes
- Better display of suspended breakpoints
- Add libraries command
- When printing a channel also print a list of goroutines waiting on it
- Better display of long string variables in the variables window
- Added formatting directives to
print
command and variables window (seehelp print
) - Support multi-target debugging where Delve supports it
- Miscellaneous bug fixes
- Show an indicator when the current frame changes between continues
- Miscellaneous bug fixes
- Extended type shortening rules to support simple generic types
- Miscellaneous bug fixes
- Add watchpoint support
- Add
Go doc
menu item, in the variables panel contextual menu, to quickly callgo doc
for a variable's type - Add hit count conditions for breakpoints
- Add
call
command - Add goroutines filtering rules
- Print goroutine wait wait reason and wait time when available
- Add dump command, creates core dump of the attached process
- Better disassembly view
- File descriptor redirects
- Miscellaneous bug fixes
- Support reverse step/next/stepout
- Support logical breakpoints
- Fixes copying from scrollback editor
- Fixes listing recentering on current line after a target resume
- Show goroutine labels
- Support interrupting a recording
- Highlight changed variables in a different color
- Add source code links in scrollback
- Added option to filter the goroutines window to only the goroutines matching a specified pattern.
- Added
-r
option to the restart command which will rerecord the target (if it was recorded), also added theflaky
script which runs the program repeatedly (rerecording it) until it hits any breakpoint. - Added
-tags
command line option to specify build tags for the target program.
- Added Starlark as a scripting language
- Start from main.main instead of runtime.main.
- Better interface when concurrent breakpoints happen during next, step or stepout.
- Deferred calls view.
- Limit number of goroutines that are loaded (improves performance when debugging programs with tens of thousands of goroutines while the goroutines window is opened).
- Make pastel theme the default theme.
- Fixed bug handling disabled breakpoints.
- Fix build on go1.9
- New, extended, syntax for pinning expressions
dp @f/somefunc/ a
will evaluatea
in the first frame callingsomefunc
.
- Breakpoint persistence
- pretty printing of time.Time variables
- Notification for truncated stack traces
- Ability to have an expression's value printed to the command window every time a continue command completes.
- Fixed some race conditions
- Redesigned detail views, they are now updated while stepping through the code
- Highlight variable names
- Expose starting location of goroutines
- Miscellaneous bug fixes
- Support font changes
- Sort variables by declaration line
- Miscellaneous bug fixes
- Print return values when stepping out of a function
- Allow setting breakpoints after the program has exited
- Implemented path substitution rules
- Implemented "Continue to line"
- Let
restart
change program arguments - Made load parameters configurable
- Support for upcoming go 1.10.
- Changed how split windows are implemented (floating windows with docking).
- "Find Element" command: search through a slice or an array for the element matching a given expression.
- New red theme.
- Only recompile if one of the source files changed.
step -last
command option to step into the last call on the line.- Search command history with Ctrl+R
- Pinning of expressions to specific execution frames.
- Keybindings for continue, next, step and stepout
- Compact visualization for interface values
- Custom formatters for user defined types.
- Better executable building for go1.9
- Better formatting for maps and integer variables.
- Added core command
- Support for multiple backends
- Added "replay" startup command, "checkpoint" command and "Checkpoints" view.
- Horizontal scrollbars for all panels
- Goroutines panel will show a breakpoint icon for goroutines stopped at a breakpoint.
- Implemented selective step into. Right click on a function call on the current line to step into that function call (note: not that function, that function call). Also accessible through the
step
command withstep -list
: