Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dlv types from DAP (the same way types is supported in the command line dlv REPL) #3729

Open
rehmsen opened this issue May 17, 2024 · 0 comments

Comments

@rehmsen
Copy link

rehmsen commented May 17, 2024

Some Delve error messages ask users to run specific commands, for example when a type is not found (e.g. type assertion .(any)), users get a message

use 'types' for a list of valid types

These error messages are also shown to users of the DAP protocol (e.g. via VSCode). The way to invoke commands via DAP is to send them as evaluate request, escaped with dlv, like dlv help. These are configured here:

func debugCommands(s *Session) []command {

As you can see, only three commands are supported, while command line Delve supports a few dozen. I think it would be good to support at least the ones we reference from error messages, like types.

  1. What version of Delve are you using (dlv version)? 1.22.1
  2. What version of Go are you using? (go version)? go1.23-20240419-RC02
  3. What operating system and processor architecture are you using? Linux, x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants