-
Notifications
You must be signed in to change notification settings - Fork 752
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
Failed to attach to Go process when using process picker, Windows #1679
Labels
Milestone
Comments
suzmue
added
the
Debug
Issues related to the debugging functionality of the extension.
label
Aug 10, 2021
Change https://golang.org/cl/341210 mentions this issue: |
Change https://golang.org/cl/341230 mentions this issue: |
gopherbot
pushed a commit
that referenced
this issue
Aug 11, 2021
The result of using the process picker commands ends up with a string in the launch config, but the processId needs to be an integer. Convert the string to an integer after the command has been run. Fixes #1679 Change-Id: I97aeab6a150e5af36eb58eb14b70e3ee5ac53a74 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/341210 Trust: Suzy Mueller <suzmue@golang.org> Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Suzy Mueller <suzmue@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> (cherry picked from commit 336b9f7) Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/341230 Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Go from the VS Code integrated terminal.go version go1.16.7 windows/amd64
gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.v0.27.0
Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
launch.json
Trace level output from the attach operation
Describe the bug
I'm trying to use the debugger in a go project to attach to a running go process.
When I launch my "Attach" launch configuration, the Go process picker pops up. I see my go process in the list. I select the go process. A dialog appears with the error:
I would expect it to successfully attach to the running go process.
I have tried entering the PID of the go process as a number in the launch configuration's
processId
field, and when I do that, it attaches successfully.Note that in the trace output, shown above, the attach command arguments do in fact contain the correct process id (though it is of string type).
This functionality has not worked for me since
v0.25.1
.Screenshots or recordings
The text was updated successfully, but these errors were encountered: