Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Debug: Failed to eval expression with watches  #3006

@andig

Description

@andig

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

  • Run go version to get version of Go

    go version go1.13.6 darwin/amd64

  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders

    1.41.1
    26076a4de974ead31f97692a0d32f90d735645c0
    x64

  • Check your installed extensions to get the version of the VS Code Go extension

    0.12.0

  • Run go env GOOS GOARCH to get the operating system and processor arhcitecture details

    darwin
    amd64

Describe the bug

During debugging, with some watches added, the debug console gets flowed with lengthy output of

Failed to eval expression:  {
"Expr": "enabled",
"Scope": {
"goroutineID": 42,
"frame": 0
},
"Cfg": {
....

as soon as a breakpoint is hit. The problem seems to be that obviously not all watches exist in the same scope (or maybe same goroutine) and vscode-go/delve errors on the ones that are not accessible.

Instead, these errors should be suppressed (or go to the terminal window) and not clutter the debug console that shows the application output.

Steps to reproduce the behavior:

  1. Set breakpoint, open debug console
  2. add various watches, especially outside breakpoint's scope
  3. run application
  4. hit breakpoint and notice error in debug console

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions