LSP4IJ provides Debug Adapter Protocol support. You can read the DAP Support overview, describing which DAP features are implemented, and how.
The DAP support is available with the Debug Adapter Protocol
run/debug configuration type:
After configuring the DAP configuration type, you can debug your file.
Here is an example with JavaScript debugging
, which uses the VSCode JS Debug DAP server:
To configure debugging with DAP, you need to fill in:
-
The
Configuration
tab to specify the working directory and the file you want to run/debug: -
The
Mappings
tab to specify the files which can be debugged to allow adding/removing breakpoints:
Evaluate expression is available by consuming the Evaluate request
If debug adapter supports the completions
request,
completion should be available in the expression editor by consuming the
Completion request:
If debug adapter supports setting a variable to a value,
the Set Value...
contextual menu should be available:
You should edit the variable:
the edit apply will consume the SetVariable request:
LSP4IJ provides DAP templates that allow to initialize a given DAP server very quickly:
- Go Delve DAP server which allows you to debug
Go
files. - Swift DAP Server which allows you to debug
Swift
files. - VSCode JS Debug DAP Server which allows you to debug
JavaScript/TypeScript
files.