You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/debugging-legacy.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
The Go extension historically used a small adapter program to work with the Go debugger, [Delve].
4
4
The extension transitioned to communicate with [Delve] directly but there are still cases you may
5
-
need to use the legacy debug adapter. This document explains how to use the
5
+
need to use the legacy debug adapter (e.g. remote debugging). This document explains how to use the
6
6
***legacy*** debug adapter.
7
7
8
8
@@ -45,6 +45,8 @@ To opt in to use the legacy debug adapter (`legacy`) by default, add the followi
45
45
```
46
46
47
47
If you want to use the legacy mode for only a subset of your launch configurations, you can use [the `debugAdapter` attribute](#launchjson-attributes) to switch between `"dlv-dap"` and `"legacy"` mode.
48
+
For [Remote Debugging](#remote-debugging) (launch configuration with `"mode": "remote"` attribute),
49
+
the extension will use the `"legacy"` mode by default, so setting this attribute won't be necessary.
48
50
49
51
Throughout this document, we assume that you opted in to use the legacy debug adapter.
50
52
For debugging using the new debug adapter (default, `"dlv-dap"` mode), please see the documentation about [Debugging](https://github.com/golang/vscode-go/tree/master/docs/debugging-legacy.md).
Copy file name to clipboardExpand all lines: docs/tools.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This document describes the tools that power the VS Code Go extension.
4
4
5
-
Tools will be installed by default when you install the extension. You can also manually install or update all of these tools by running the [`Go: Install/Update Tools`](commands.md#go-installupdate-tools) command. The extension uses pinned versions of command-line tools. See the pinned versions in tools information [here](https://github.com/golang/vscode-go/blob/master/src/goToolsInformation.ts). If any tools are missing, you will see an `Analysis Tools Missing` warning in the bottom-right corner of the editor, which will prompt you to install these tools.
5
+
Tools will be installed by default when you install the extension. You can also manually install or update all of these tools by running the [`Go: Install/Update Tools`](commands.md#go-installupdate-tools) command. The extension uses pinned versions of command-line tools. See the pinned versions in tools information [here](https://github.com/golang/vscode-go/blob/master/extension/src/goToolsInformation.ts). If any tools are missing, you will see an `Analysis Tools Missing` warning in the bottom-right corner of the editor, which will prompt you to install these tools.
6
6
7
7
VS Code Go will install the tools to your `$GOPATH/bin` by default.
we plan to switch the default back to use Delve DAP for remote deubgging.
8
+
9
+
If you want to continue using [Delve DAP for remote debugging](https://github.com/golang/vscode-go/wiki/debugging#connect-to-headless-delve-with-target-specified-at-server-start-up), use the following
// This needs to use dlv at version 'v1.7.3-0.20211026171155-b48ceec161d5' or later,
196
+
// but we have no way of detectng that with an external server ahead of time.
197
+
// If an earlier version is used, the attach will fail with warning about versions.
198
+
}elseif(debugConfiguration['port']){
194
199
this.showWarning(
195
-
'ignoreDefaultDebugAdapterChangeWarning',
196
-
"We are using the 'dlv-dap' integration for remote debugging by default. Please comment on [issue 3096](https://github.com/golang/vscode-go/issues/3096) if this impacts your workflows."
200
+
'ignorePortUsedInDlvDapWarning',
201
+
"`port` with 'dlv-dap' debugAdapter connects to [an external `dlv dap` server](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#running-debugee-externally) to launch a program or attach to a process. Remove 'host' and 'port' from your launch.json if you have not launched a 'dlv dap' server."
'Legacy debug adapter is deprecated. Please comment on [issue 3096](https://github.com/golang/vscode-go/issues/3096) if this impacts your workflows.'
204
-
);
205
-
}
206
-
if(
207
-
debugConfiguration['debugAdapter']==='dlv-dap'&&
208
-
debugConfiguration.request==='launch'&&
209
-
debugConfiguration['port']
210
-
){
211
-
this.showWarning(
212
-
'ignorePortUsedInDlvDapWarning',
213
-
"`port` with 'dlv-dap' debugAdapter connects to [a `dlv dap` server](https://github.com/golang/vscode-go/wiki/debugging#run-debugee-externally) to launch a program or attach to a process. Remove 'host'/'port' from your launch.json configuration if you have not launched a 'dlv dap' server."
0 commit comments