Home  >  Article  >  Backend Development  >  GoLand Debugger | Attach to Process | dlv.exe Access Denied

GoLand Debugger | Attach to Process | dlv.exe Access Denied

WBOY
WBOYforward
2024-02-05 23:33:031103browse

GoLand 调试器 |附加到进程 | dlv.exe 访问被拒绝

Question content

I am using GoLand to debug a process built using go build. Ctrl Alt F5. But I get this error:

"C:\Program Files\JetBrains\GoLand 2022.1.4\plugins\go\lib\dlv\windows\dlv.exe" --listen=127.0.0.1:56356 --headless=true --api-version=2 --check-go-version=false --only-same-user=false attach 3064 --
API server listening at: 127.0.0.1:56356
could not attach to pid 3064: Access is denied.

I am running GoLand in administrator mode and I have granted administrator rights to dlv.exe. I also tried running GoLand in elevated mode and still had the same issue.

I tried debugging in Visual Studio Code (by running VSCode in Administrator mode) and I was able to debug the process using the launch.json below

<code>{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Attach to Process",
            "type": "go",
            "request": "attach",
            "mode": "local",
            "processId": 13932
        }
    ]
}
</code>

I prefer GoLand debugger. Any suggestions on how to resolve the issue in GoLand?


Correct Answer


This issue should be resolved in newer versions of GoLand. Please try GoLand 2023.1 (or newer) and use Help->Contact Support or Help->If the problem persists, please submit a bug report .

The above is the detailed content of GoLand Debugger | Attach to Process | dlv.exe Access Denied. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:stackoverflow.com. If there is any infringement, please contact admin@php.cn delete