-
Notifications
You must be signed in to change notification settings - Fork 869
Description
Once #1873 is in, using hello-world program from hello directory from vscode, set a breakpoint in the editor.
Then start the dlv server from the symbolic link directory.
hello1_ln$ dlv debug . --headless --listen=:54321 --api-version=2
There are two ways to configure the path mapping with "debugAdapter": "legacy" that work:
"cwd":"/path/to/hello",
"remotePath":"/different/path/to/hello1_ln",
"substitutePath": [
{
"from": "/Users/polina/go/src/hello1",
"to": "/Users/polina/go/src/hello1_ln",
},
]
Both only substitutePath works with dlv-dap.
@suzmue @hyangah
Should we use this as an opportunity to migrate the users from remotePath to substitutePath, which is more powerful with multiple entries and new dlv config support in dap, matches dlv terminal, and can be used when connecting to dlv dap servers as well. Or should we aim for backward compatibility and map remotePath+cwd to substitutePath for the user? If not, we should update package.json because it misleadingly says "If specified, becomes the first entry in substitutePath."
Update: this doesn't matter for Cloud Code. They can easily update their configuration to use whatevere.