Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debug: allow debugAdapter=dlv-dap with remote attach mode
If debug adapter is not specified, still default to `legacy` for remote attach in case users haven't updated their tools to newer version of dlv that supports this via DAP. We can flip the default in a couple of months. In the meantime, users will need to specify directly if they want to use `dlv-dap` adapter. There is no good way to detect the version of a running server, so we will always allow them to proceed, while providing a warning about the right version at session start-up and at shutdown via Go Debug output channel if we detect that the connection failed with no responses. After this change, we will have the following behavior: attach + remote + debugAdapter= => legacy attach + remote + debugAdapter=dlv-dap => dlv-dap + version warnings attach + remote + debugAdapter=legacy => legacy attach + !remote + debugAdapter=dlv-dap + port => warning to drop port if not using external server launch + !remote + debugAdapter=dlv-dap + port => warning to drop port if not using external server launch + remote + debugAdapter=dlv-dap + port => error from dlv server Updates #1861 Change-Id: Ia2e6b35f9d401ea2e719a65c78d9cf8e5ef90c24 GitHub-Last-Rev: 3a0ce53 GitHub-Pull-Request: #1873 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/360974 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Polina Sokolova <polina@google.com> Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com>
- Loading branch information
Showing
3 changed files
with
47 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters