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: README.md
+22-22Lines changed: 22 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ provides rich language support for the
9
9
[Go programming language](https://golang.org/).
10
10
11
11
📣
12
-
[Remote attach debugging](docs/debugging.md#connecting-to-headless-delve-with-target-specified-at-server-start-up) is now available via Delve's native DAP implementation with Delve v1.7.3 or newer. It enchances remote debugging with the same
13
-
[debugging features](docs/debugging.md) that are already in use for local debugging. It is now the default with the
14
-
[Go Nightly](docs/nightly.md) build of the extension and will become the default for the stable releases in mid 2022.
12
+
[Remote attach debugging](https://github.com/golang/vscode-go/wiki/debugging#connecting-to-headless-delve-with-target-specified-at-server-start-up) is now available via Delve's native DAP implementation with Delve v1.7.3 or newer. It enchances remote debugging with the same
13
+
[debugging features](https://github.com/golang/vscode-go/wiki/debugging) that are already in use for local debugging. It is now the default with the
14
+
[Go Nightly](https://github.com/golang/vscode-go/wiki/nightly) build of the extension and will become the default for the stable releases in mid 2022.
15
15
We recommend switching your remote attach configurations in `launch.json` to use
16
16
`"debugAdapter":"dlv-dap"` now to verify that this works for you.
17
17
Please [file a new issue](https://github.com/golang/vscode-go/issues/new/choose) if you encounter any problems.
@@ -29,7 +29,7 @@ extension fits your needs and enhances your development experience.
29
29
*[Go installation guide]. This extension works best with Go 1.14+.
30
30
*[Managing extensions in VS Code].
31
31
***Step 2.** To activate the extension, open any directory or workspace
32
-
containing Go code. Once activated, the [Go status bar](docs/ui.md) will
32
+
containing Go code. Once activated, the [Go status bar](https://github.com/golang/vscode-go/wiki/ui) will
33
33
appear in the bottom left corner of the window and show the recognized Go
34
34
version.
35
35
***Step 3.** The extension depends on [a set of extra command-line tools](#tools).
@@ -46,7 +46,7 @@ You are ready to Go :-) 🎉🎉🎉
46
46
47
47
Please be sure to learn more about the many [features](#features) of this
48
48
extension, as well as how to [customize](#customization) them. Take a look at
49
-
[Troubleshooting](docs/troubleshooting.md) and [Help](#ask-for-help) for further
49
+
[Troubleshooting](https://github.com/golang/vscode-go/wiki/troubleshooting) and [Help](#ask-for-help) for further
50
50
guidance.
51
51
52
52
If you are new to Go, [this article](https://golang.org/doc/code.html) provides
@@ -72,7 +72,7 @@ In addition to integrated editing features, the extension provides several
72
72
commands for working with Go files. You can access any of these by opening the
73
73
Command Palette (`Ctrl+Shift+P` on Linux/Windows and `Cmd+Shift+P` on Mac), and
74
74
then typing in the command name. See the
75
-
[full list of commands](docs/commands.md#detailed-list) provided by this
75
+
[full list of commands](https://github.com/golang/vscode-go/wiki/commands#detailed-list) provided by this
76
76
extension.
77
77
78
78
<palign=center>
@@ -85,7 +85,7 @@ Code, not by this extension.
85
85
86
86
For better syntax highlighting, we recommend enabling
Copy file name to clipboardExpand all lines: docs/debugging.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ These debugging features are possible by using [Delve](https://github.com/go-del
6
6
The Go extension has been communicating with Delve through a custom debug adapter program (`legacy` mode).
7
7
As the new [`Delve`'s native debug adapter implementation](https://github.com/go-delve/delve/tree/master/service/dap) has become available (since Delve v1.6.1), the Go extension is transitioning to deprecate the legacy debug adapter in favor of direct communication with Delve via [DAP](https://microsoft.github.io/debug-adapter-protocol/overview).
8
8
9
-
📣 **We are happy to announce that the new _`dlv-dap`_ mode of Delve integration is enabled for _local__debugging_ by default. For [_remote__debugging_](#remote-debugging) it is the default in [Go Nightly](docs/nightly.md) and is
9
+
📣 **We are happy to announce that the new _`dlv-dap`_ mode of Delve integration is enabled for _local__debugging_ by default. For [_remote__debugging_](#remote-debugging) it is the default in [Go Nightly](nightly.md) and is
10
10
available with stable builds on demand with `"debugAdapter": "dlv-dap"` attribute in `launch.json` or `settings.json`!**
11
11
12
12
Many features and settings described in this document may be available only with the new `dlv-dap` mode.
@@ -39,7 +39,7 @@ The easiest way to update `dlv` on demand is to use the `"Go: Install/Update Too
39
39
40
40
Once `dlv` is installed on your system, the extension will prompt you for update whenever installing a newer version is necessary (usually after the Go extension upgrade). You can set the `go.toolsManagement.autoUpdate` setting so the extension can update `dlv` automatically for you.
41
41
42
-
If you need to install `dlv` manually outside of VS Code (for example, you are building a dev container with necessary tools preinstalled, or install `dlv` built from the tree head), follow the instruction in [Manually installing `dlv`](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#manually-installing-dlv).
42
+
If you need to install `dlv` manually outside of VS Code (for example, you are building a dev container with necessary tools preinstalled, or install `dlv` built from the tree head), follow the instruction in [Manually installing `dlv`](debugging.md#manually-installing-dlv).
43
43
44
44
💡 The extension used to install a dev version of `dlv` as a separate binary (known as `dlv-dap`). As Delve DAP is stable and the transition work is near completion, from v0.31.0 (to be released in Jan 2022), the extension will switch to use `dlv`, instead of the `dlv-dap` binary. It is safe to delete `dlv-dap` installed on the system after v0.31.0 release.
45
45
@@ -341,7 +341,7 @@ VS Code implements a generic, language-agnostic debugger UI based on [Debug Adap
For information on debugging using the legacy debug adapter, please see the old [Debugging Documentation](https://github.com/golang/vscode-go/blob/master/docs/debugging.md). Note that many new or enhanced features discussed in this document may not be available with the legacy debug adapter.
344
+
For information on debugging using the legacy debug adapter, please see the old [Debugging Documentation](debugging.md). Note that many new or enhanced features discussed in this document may not be available with the legacy debug adapter.
345
345
346
346
### Handling STDIN
347
347
@@ -489,7 +489,7 @@ In `.vscode/launch.json`:
489
489
490
490
On rare occasions, you may want to install `dlv` by yourself instead of letting the extension handle its installation.
491
491
492
-
First, find where the Go extension finds tools. Like [other tools the extension uses](https://github.com/golang/vscode-go/blob/master/docs/tools.md#tools), the Go extension searches the `dlv` executable from `${GOPATH}/bin`, `${GOBIN}` and `${PATH}` (or `Path` in Windows). So, install `dlv` in the directory. The easiest way to check the tool installation location the Go extension uses is currently by running the `Go: Locate Configured Go Tools` command from the command palette (⇧+⌘+P or Ctrl+Shift+P).
492
+
First, find where the Go extension finds tools. Like [other tools the extension uses](tools.md#tools), the Go extension searches the `dlv` executable from `${GOPATH}/bin`, `${GOBIN}` and `${PATH}` (or `Path` in Windows). So, install `dlv` in the directory. The easiest way to check the tool installation location the Go extension uses is currently by running the `Go: Locate Configured Go Tools` command from the command palette (⇧+⌘+P or Ctrl+Shift+P).
493
493
494
494
If your Go version is 1.16 or newer:
495
495
@@ -529,7 +529,7 @@ In this mode the user must first manually start a [`dlv --headless`](https://git
529
529
530
530
The [headless dlv server](https://github.com/go-delve/delve/tree/master/Documentation/api) can now be used with both `"debugAdapter": "legacy"` (default value) and `"debugAdapter": "dlv-dap"` (with Delve v1.7.3 or newer) as well as Delve's [command-line interface](https://github.com/go-delve/delve/tree/master/Documentation/cli) via `dlv connect`. The `--accept-multiclient` flag makes this a multi-use server that persists on `Disconnect` from a client and allows repeated connections from any of the aforementioned clients. A combination of `--accept-multiclient --continue` flags can be used to resume process execution on start-up. Please see `dlv --help` and `dlv [command] --help` for dlv's command-line options.
531
531
532
-
We encourage you to give the newly added `"debugAdapter": "dlv-dap"` support a try and to [let us know of any issues](https://github.com/golang/vscode-go/issues/new). If you need to use the `legacy` mode, pleasse also see the [legacy remote debugging](https://github.com/golang/vscode-go/blob/master/docs/debugging-legacy.md#remote-debugging) documentation.
532
+
We encourage you to give the newly added `"debugAdapter": "dlv-dap"` support a try and to [let us know of any issues](https://github.com/golang/vscode-go/issues/new). If you need to use the `legacy` mode, pleasse also see the [legacy remote debugging](debugging-legacy.md#remote-debugging) documentation.
533
533
534
534
For example, start external headless server:
535
535
```
@@ -611,9 +611,9 @@ The suggestions below are intended to help you troubleshoot any problems you enc
611
611
612
612
1. Read documentation and [FAQs](#faqs). Also check the [Delve FAQ](https://github.com/go-delve/delve/blob/master/Documentation/faq.md) in case the problem is mentioned there.
613
613
1. Check your `launch.json` configuration. Often error messages appearing in the DEBUG CONSOLE panel reveal issues.
614
-
1. Update Delve (`dlv`) to pick up most recent bug fixes. Follow [the instruction](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#staying-up-to-date).
614
+
1. Update Delve (`dlv`) to pick up most recent bug fixes. Follow [the instruction](debugging.md#staying-up-to-date).
615
615
1. Check if you can reproduce the issue with `dlv`, the command line tool from the integrated terminal. <!-- TODO(vscode-go): add instructions https://github.com/golang/vscode-go/issues/1931 --> If it's reproducible when using `dlv`, take a look at the [Delve project issue tracker](https://github.com/go-delve/delve/issues).
616
-
1. Capture [logs](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#collecting-logs) and inspect them.
616
+
1. Capture [logs](debugging.md#collecting-logs) and inspect them.
617
617
1. Look at the [existing debugging issues](https://github.com/golang/vscode-go/labels/Debug) if similar issues were reported.
618
618
1. If none of these solve your problem, please [open a new issue](#reporting-issues).
619
619
@@ -651,7 +651,7 @@ This problem often occurs when the source location used in compiling the debugge
651
651
652
652
### Debug sessions started with the "debug test" CodeLens or the test UI does not use my `launch.json` configuration.
653
653
654
-
The "debug test" CodeLens and the [test UI](https://github.com/golang/vscode-go/blob/master/docs/features.md#test-and-benchmark) do not use the `launch.json` configuration ([Issue 855](https://github.com/golang/vscode-go/issues/855)). As a workaround, use the `go.delveConfig` setting and the `go.testFlags` setting. Please note that these all apply to all debug sessions unless overwritten by a specific `launch.json` configuration.
654
+
The "debug test" CodeLens and the [test UI](features.md#test-and-benchmark) do not use the `launch.json` configuration ([Issue 855](https://github.com/golang/vscode-go/issues/855)). As a workaround, use the `go.delveConfig` setting and the `go.testFlags` setting. Please note that these all apply to all debug sessions unless overwritten by a specific `launch.json` configuration.
655
655
656
656
### Starting a debug session fails with `decoding dwarf section info at offset 0x0: too short` or `could not open debug info` error.
657
657
@@ -692,7 +692,7 @@ The logging will appear in the `Go Debug` output channel (Command Palette -> "Vi
692
692
693
693
The core part of Delve DAP implementation is in the [`service/dap`](https://github.com/go-delve/delve/tree/master/service/dap) package. Follow Delve project's [contribution guideline](https://github.com/go-delve/delve/blob/master/CONTRIBUTING.md#contributing-code) to send PRs.
694
694
695
-
Code for integration with the Go extension is mostly in [`src/goDebugFactory.ts`](https://github.com/golang/vscode-go/blob/master/src/goDebugFactory.ts) and tests are in [`test/integration/goDebug.test.ts`](https://github.com/golang/vscode-go/blob/master/test/integration/goDebug.test.ts). Please take a look at VS Code Go project's [contribution guideline](https://github.com/golang/vscode-go/blob/master/docs/contributing.md) to learn about how to prepare a change and send it for review.
695
+
Code for integration with the Go extension is mostly in [`src/goDebugFactory.ts`](https://github.com/golang/vscode-go/blob/master/src/goDebugFactory.ts) and tests are in [`test/integration/goDebug.test.ts`](https://github.com/golang/vscode-go/blob/master/test/integration/goDebug.test.ts). Please take a look at VS Code Go project's [contribution guideline](contributing.md) to learn about how to prepare a change and send it for review.
0 commit comments