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

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

WBOY
Release: 2024-02-05 23:33:03
forward
1188 people have browsed it

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.
Copy after login

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>
Copy after login

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!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template