Skip to content

Debug mode #83

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

Merged
merged 11 commits into from
May 22, 2025
Merged

Debug mode #83

merged 11 commits into from
May 22, 2025

Conversation

martin-azpillaga
Copy link
Collaborator

@martin-azpillaga martin-azpillaga commented May 19, 2025

These changes enable attaching a debugger to a running language server.
First, update the plugin version and choose a port for the language server to listen for debuggers:
image
Next, create a Remote JVM Debug task in idea pointing to the same port:
Screenshot from 2025-05-19 12-05-02
Start the editor as usual. While the editor is running, run the idea task to attach the debugger to the running language server. Now the code will stop in the breakpoints located in the language server's code:
Screenshot from 2025-05-19 12-04-23

To debug initialization code, set the suspendExecutionUntilDebuggerAttached flag to true:
image
The language server won't start until the debugger task is launched, and you can inspect the initial messages:
image

Copy link
Member

@alessiostalla alessiostalla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good and the feature is really useful, I would just update the readme

@martin-azpillaga
Copy link
Collaborator Author

Thanks @alessiostalla for the comments. I have pushed new commits that address the main issues.

@martin-azpillaga martin-azpillaga merged commit 6d25120 into main May 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants