Comments (7)
@krav-la Thanks for the report. This is caused by v0.41.0 using Delve DAP as the default debug adapter for remote debugging.
Is it possible for you to find the remote workspace, goroot, and module cache paths? If so, can you give a try to formulate the substitutePath configuration ? e.g.
{
"name": "Connect to server",
...
"substitutePath": [
{
"from": "${workspaceFolder}", "to": "/remote/path/to/workspace",
"from": "/local/path/to/gomodcache", "to": "/remote/path/to/gomodcache",
"from": "/local/path/to/goroot", "to": "/remote/path/to/goroot",
},
]
}
/local/path/to/gomodcache
can be found with go env GOMODCACHE
.
/local/path/to/goroot
can be found with go env GOROOT
.
It will be nice if the VSCode Go extension or Delve can automate this mapping computation.
If this is too tricky, the last resort is to use the legacy debug adapter by adding "debugAdapter": "legacy"
to the configuration.
from vscode-go.
-> related issue: #3096 (comment)
could you please link the two?
from vscode-go.
@krav-la Thanks for the report. This is caused by v0.41.0 using Delve DAP as the default debug adapter for remote debugging.
Is it possible for you to find the remote workspace, goroot, and module cache paths? If so, can you give a try to formulate the substitutePath configuration ? e.g.
{ "name": "Connect to server", ... "substitutePath": [ { "from": "${workspaceFolder}", "to": "/remote/path/to/workspace", "from": "/local/path/to/gomodcache", "to": "/remote/path/to/gomodcache", "from": "/local/path/to/goroot", "to": "/remote/path/to/goroot", }, ] }
/local/path/to/gomodcache
can be found withgo env GOMODCACHE
./local/path/to/goroot
can be found withgo env GOROOT
.It will be nice if the VSCode Go extension or Delve can automate this mapping computation.
If this is too tricky, the last resort is to use the legacy debug adapter by adding
"debugAdapter": "legacy"
to the configuration.
For me the legacy option didn't work. Also this fix works for my files but not the dependencies.
from vscode-go.
We have decided to revert the change of the default back to using the legacy debug adapter for remote attach in v0.41.3 to give us time to address this breakpoint issue from a lack of automated path mapping (#3193). We will try to address the broken breakpoint in the dependency in dlv dap.
from vscode-go.
Timed out in state WaitingForInfo. Closing.
(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)
from vscode-go.
Change https://go.dev/cl/580019 mentions this issue: Revert "docs: update the debugging doc about remote mode default adapter"
from vscode-go.
Change https://go.dev/cl/580422 mentions this issue: Revert "docs: update the debugging doc about remote mode default adapter"
from vscode-go.
Related Issues (20)
- gopls: automated issue report (crash) HOT 1
- gopls: automated issue report (crash) HOT 1
- Debugger fails when breakpoints are set HOT 5
- Test explorer about 25 times slower with many subtests
- Cannot install go version due to missing binpath HOT 8
- edit default .vscode/launch.js "Launch Package" program work dir HOT 3
- Options for RR HOT 1
- <Removed>
- govulncheck: adjust support to handle relative paths HOT 1
- New Feature: Copy Go Package Path HOT 2
- gopls: spawns cc1 processes on file save when using imports that use cgo and chews up machine resources HOT 2
- Linter settings ignored HOT 9
- Wrap long lines using golines HOT 3
- gopls: automated issue report (crash) HOT 1
- govulncheck: use SARIF instead of JSON
- gopls: automated issue report (crash) HOT 7
- gopls: automated issue report (initialization) HOT 1
- Renaming a file breaks code completion when letter capitalization changes
- gopls: automated issue report (initialization) HOT 1
- gopls: automated issue report (crash)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-go.