Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarifying run config - Remote Server #940

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ While developing the language server and the extension, you don't need to deploy
- In the debug viewlet, run the launch _Launch Extension - Remote Server_
- The extension will open a socket on port 3333 and will wait for the JDT language server to connect
- In Eclipse, run the JDT language server as an Eclipse application.
- Create a debug configuration of type _Eclipse Application_.
- in the main tab of the debug configuration set the product to `org.eclipse.jdt.ls.core.product`.
- in the Environment tab, define a variable `CLIENT_PORT` with value `3333`.
- if your workspace contains 'org.eclipse.jdt.ui', use the Plug-Ins tab in the debug configuration to exclude the plug-in. The presence of 'org.eclipse.jdt.ui' will cause the language server to hang.
- Create a debug configuration of type _Eclipse Application_.
- In the main tab of the debug configuration select `Run a Product` instead of `Run an Application`.
- Set the product to `org.eclipse.jdt.ls.core.product`.
- In the Environment tab, define a variable `CLIENT_PORT` with value `3333`.
- If your workspace contains 'org.eclipse.jdt.ui', use the Plug-Ins tab in the debug configuration to exclude the plug-in. The presence of 'org.eclipse.jdt.ui' will cause the language server to hang.
- In the debug console of VSCode you can see if the connection was successful.
- When the server is running breakpoints can be reached and hot code replace can be used to make fixes without restarting the server.
- You can modify `launch.json` to use a different port:
- Modify `SERVER_PORT` to specify the port the JST LS server should connect to.
- You can modify `.vscode/launch.json` to use a different port:
- Modify `SERVER_PORT` under `env` to specify the port the JST LS server should connect to.

## Sideloading

Expand Down