How do I debug the language server #376
Answered
by
msujew
paulfrench
asked this question in
Q&A
-
After creating a langium project I can debug the extension itself but I cannot workout how to debug the language server? I can see this in the code...
Apologies, this is probably more a vscode question but I'm struggling to find an answer. Any pointers would be appreciated! Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
msujew
Jan 19, 2022
Replies: 1 comment 2 replies
-
Hi @paulfrench, So basically, the language server is a second process, therefore you need a second debug session/config to actually debug it. We use this We should probably think about adding it to the yeoman generator project... |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
paulfrench
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @paulfrench,
So basically, the language server is a second process, therefore you need a second debug session/config to actually debug it. We use this
attach
debug config for this:https://github.com/langium/langium/blob/221b8cff0f48480c2d07de74bcdf81d6c237d339/.vscode/launch.json#L26-L41
We should probably think about adding it to the yeoman generator project...