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

Debug logging? #259

Open
dogboydog opened this issue Sep 26, 2021 · 1 comment
Open

Debug logging? #259

dogboydog opened this issue Sep 26, 2021 · 1 comment

Comments

@dogboydog
Copy link

Description:

Is there any way with the current version of lsp4intellij to log input and output of the LSP server? I'm developing a new plugin with @pappleby and we wanted to see what's going in and out of the server to debug why things are not working.

Describe your problem(s)
Starting the language server fails to fully initialize despite working for other editors. We want to see if we can tell what exactly about the requests is failing
Describe your solution(s)
An option to turn on debug logging to log to the plugin directory or somewhere in the project directory
Suggested Labels (optional):

question, logging

@dogboydog
Copy link
Author

I was able to achieve something like this by wrapping RawCommandServerDefinition with code to echo stdin and stdout to a file

https://github.com/dogboydog/yarnspinner-jetbrains-plugin/blob/55fafb38bd5623bab5a90572126e83abf28f4f95/src/main/java/org/dogboydog/yarnspinnerlsp/server/TeeStreamConnectionProvider.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant