Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't attach the process #1662

Closed
Kellermaan opened this issue Aug 4, 2021 · 4 comments
Closed

Couldn't attach the process #1662

Kellermaan opened this issue Aug 4, 2021 · 4 comments
Labels
Debug Issues related to the debugging functionality of the extension. FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@Kellermaan
Copy link

Everything I used is up to date.

Share the Go related settings you have added/edited

{
"name": "Attach to Process",
"type": "go",
"request": "attach",
"mode": "local",
"processId": 2299
},

Describe the bug

I couldn't use the attach debug mode when I use the remote ssh on my server.
I run the app, and get the process id 2299, then I set up the json file.
When I clik the run button, just no reaction.

Screenshots or recordings

图片

@gopherbot gopherbot added this to the Untriaged milestone Aug 4, 2021
@hyangah
Copy link
Contributor

hyangah commented Aug 4, 2021

@Kellermaan was there any log message in the Debug Console? Try to increase log verbosity to gather more details.

{
"name": "Attach to Process",
...
"showLog": true,
"logOutput": "rpc,debugger",
"trace": "verbose",
}

@hyangah hyangah added Debug Issues related to the debugging functionality of the extension. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Aug 4, 2021
@hyangah
Copy link
Contributor

hyangah commented Aug 4, 2021

Probably a duplicate of #1608.
v0.27.0 will include the fix for the issue. Until then, either try to specify cwd or try a new adapter that doesn't have this issue - (by adding the debugAdapter property: "debugAdapter": "dlv-dap")

@Kellermaan
Copy link
Author

@hyangah sure, got it, it works now, thanks a lot!

@hyangah
Copy link
Contributor

hyangah commented Aug 9, 2021

Glad to hear that the problem was solved. Closing.

@hyangah hyangah closed this as completed Aug 9, 2021
@golang golang locked and limited conversation to collaborators Aug 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Debug Issues related to the debugging functionality of the extension. FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants