-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the Delve port dynamically for remote debug (#78)
* Set the Delve port dynamically Currently the Delve port can be defined either randomly or hard-coded by hand. Hard-coded port allows to know which port to use in debug configurations, but in practice with many Go projects, it would be great to set the Delve port in debug configurations. Luckily `nvim-dap` allows to set an `on_config` callback for an adapter, which can be used to resolve the adapter settings when a debug session starts. This PR implements this `nvim-dap` feature, which can be used with the support of VSCode `launch.json` files to greatly enhance the developer experience. This potentially resolves #73 * Fix textlint error * Fix possible nil table for Go configs * Complete the documentation * Validate the VSCode configuration * Update the doc according to the current version of nvim-dap * Revert required fields The extension now decides if it should enable the remote debugging if a port is defined in the user configuration.
- Loading branch information
Showing
3 changed files
with
106 additions
and
6 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