Stefan Haller aec354cd0b Shorten variable types (#3535)
* Add ShortenType function

Taken from

  https://github.com/aarzilli/gdlv/blob/master/internal/prettyprint/short.go

with kind permission by @aarzilli.

* Shorten type names in variable values

The variables view in VS Code is a lot easier to read if long type names are
shortened in much the same way as we shorten them for functions in the call
stack view.

We only shorten them in the value strings; the Type field of dap.Variable is
kept as is. Since this only appears in a tooltip, it isn't a problem to have the
full type visible there.
2023-11-09 10:15:25 +01:00
2015-05-19 12:25:26 -05:00
2023-11-09 10:15:25 +01:00
2023-11-04 17:07:55 +01:00
2023-11-04 17:07:55 +01:00
2023-11-04 17:07:55 +01:00
2014-05-03 15:31:52 -05:00
2023-08-11 08:51:28 -07:00

Delve

license GoDoc Build Status

The GitHub issue tracker is for bugs only. Please use the developer mailing list for any feature proposals and discussions.

About Delve

Delve is a debugger for the Go programming language. The goal of the project is to provide a simple, full featured debugging tool for Go. Delve should be easy to invoke and easy to use. Chances are if you're using a debugger, things aren't going your way. With that in mind, Delve should stay out of your way as much as possible.

Description
Delve is a debugger for the Go programming language.
Readme MIT 61 MiB
Languages
Go 97.1%
C 2.3%
Shell 0.2%
PowerShell 0.1%
Starlark 0.1%
Other 0.1%