What is the workflow for debugging the language server? #634
Replies: 2 comments 9 replies
-
Found these Glint settings in vscode: This is an improvement -- it's not exactly what I was looking for, but it allows me to explore more things. |
Beta Was this translation helpful? Give feedback.
-
Like we talked about in Discord, there's a launch config in For the language server itself, though, I tend to debug in the context of a test rather than live, since the live version of the language server runs in a separate process (it is possible to attach a debugger to that, but generally I've found to be more trouble than it's worth). |
Beta Was this translation helpful? Give feedback.
-
caveat, this is on a branch for this PR: #615, and I'm trying to verify in-repo (in the gjs test-app in test-packages)
For example, I'm getting "server stopped: timed out" issues, and I'd like to debug what's going on, but atm, I feel very clunky when working with language server development with vscode:
yarn build --watch
yarn extension:package
I've tried adding logs in the constructor of the language server class, but they never print. maybe there is a way to enable verbose logging?
What I'd like to do is use the actual debugger and breakpoints and such.
Is there a better workflow?
To me, it feels like I'm doing something terribly wrong / dark-ages-esque, and there must be a better way!
Beta Was this translation helpful? Give feedback.
All reactions