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
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,36 @@ mvnw.cmd clean install
35
35
./mvnw clean install
36
36
```
37
37
38
+
39
+
## Usage with eclipse.jdt.ls
40
+
41
+
To use `java-debug` as a [jdt.ls](https://github.com/eclipse/eclipse.jdt.ls) plugin, an [LSP client](https://langserver.org/) has to launch [jdt.ls](https://github.com/eclipse/eclipse.jdt.ls) with `initializationOptions` that contain the path to the built `java-debug` jar within a `bundles` array:
Editor extensions like [vscode-java](https://github.com/redhat-developer/vscode-java) take care of this.
55
+
56
+
57
+
Once `eclipse.jdt.ls` launched, the client can send a [Command](https://microsoft.github.io/language-server-protocol/specifications/specification-current/#command) to the server to start a debug session:
58
+
59
+
```
60
+
{
61
+
"command": "vscode.java.startDebugSession"
62
+
}
63
+
```
64
+
65
+
The response to this request will contain a port number on which the debug adapter is listening, and to which a client implementing the debug-adapter protocol can connect to.
0 commit comments