'VSCode not hitting breakpoints using Go lang

I'm using Windows and the latest Visual Studio Code (v1.66.0), with the latest "Go" extension (v0.32.0) and my breakpoints seem to no longer be getting hit. During debug, the breakpoint changes from a red circle to grey and if I hover over the breakpoint it displays "Access is denied". I've tried running as administrator with the same result. The Go module is a single file, as shown in the screenshot. The launch configuration is the default one created by VSCode, and is shown below. Any ideas?

enter image description here

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch Package",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${fileDirname}"
        }
    ]
}


Solution 1:[1]

FYI for others searching, turns out that the debugger "dlv.exe" was being blocked by my antivirus software.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jordan