Skip to content

Commit

Permalink
debug: implement new prototype thin DA for delve
Browse files Browse the repository at this point in the history
Updates #23

This DA serves as a DAP proxy between the editor and a DAP-capable Delve. Right now all it does is launch Delve (in DAP mode) when LaunchRequest is received from the editor, and then relays all messages between the editor and Delve back and forth.

package.json section is copied from the current DA as-is. Some of its options will be removed and cleaned up in the subsequent PRs to make the diffs more obvious (see #271).

Change-Id: I3493c5ee1d9e80071a17ea32c04a15eb021c8006
GitHub-Last-Rev: ddd68dc
GitHub-Pull-Request: #267
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/240417
Reviewed-by: Polina Sokolova <polina@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
  • Loading branch information
eliben authored and hyangah committed Jul 1, 2020
1 parent f86031f commit 17d0045
Show file tree
Hide file tree
Showing 7 changed files with 1,170 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@
],
"preLaunchTask": "npm"
},
{
"name": "Launch as server (dlv dap)",
"type": "node",
"protocol": "inspector",
"request": "launch",
"program": "${workspaceFolder}/out/src/debugAdapter2/goDlvDebugMain.js",
"args": [
"--server=4711"
],
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "npm"
},
{
"name": "Launch Extension Tests",
"type": "extensionHost",
Expand Down
Loading

0 comments on commit 17d0045

Please sign in to comment.