Skip to content

Hit Count breakpoint doesn't work #3983

@Kentzo

Description

@Kentzo

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

Version Information
  • Run go version to get version of Go from the VS Code integrated terminal.
    • go version go1.25.6 darwin/arm64
  • Run gopls -v version to get version of Gopls from the VS Code integrated terminal.
    • golang.org/x/tools/gopls v0.21.0
  • Run code -v or code-insiders -v to get version of VS Code or VS Code Insiders.
    • 1.108.1
  • Check your installed extensions to get the version of the VS Code Go extension
    • 0.52.1
  • Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) > Go: Locate Configured Go Tools command.
    -

Share the Go related settings you have added/edited

    "go.survey.prompt": false,
    "go.showWelcome": false,
    "go.inlayHints.ignoredError": true,
    "go.inlayHints.constantValues": true,
    "go.editorContextMenuCommands.compilerDetails": true,
    "go.lintOnSave": "package",
    "gopls.ui.semanticTokens": true,
    "go.lintTool": "golangci-lint-v2"
    "go.buildFlags": [
        "-v"
    ]

Describe the bug

The Hit Count breakpoint condition is ignored:

Image

Steps to reproduce the behavior:

  1. Add the Hit Count breakpoint
  2. Run the debugger

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebugIssues related to the debugging functionality of the extension.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions