Skip to content

debug: connecting to dlv-dap results in connection error #1270

@suzmue

Description

@suzmue

What version of Go, VS Code & VS Code Go extension are you using?

  • Run go version to get version of Go from the VS Code integrated terminal.
    • go version go1.16 darwin/amd64
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders.
    • 1.53.2
  • Check your installed extensions to get the version of the VS Code Go extension
    • Go Nightly

Describe the bug

{
            "name": "Launch Program",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "${workspaceFolder}",
            "debugAdapter": "dlv-dap"
 }

Steps to reproduce the behavior:

  1. Reinstall dlv
  2. Click on 'Launch Program'
  3. See error

Screen Shot 2021-03-04 at 11 02 25 AM

This appears to be a timing related issue, since it does not happen often. This needs a better error message and/or a second attempt to connect.

Metadata

Metadata

Assignees

Labels

DebugIssues related to the debugging functionality of the extension.FrozenDueToAge

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions