sprotty-server icon indicating copy to clipboard operation
sprotty-server copied to clipboard

seperate debugging

Open armeausstahl opened this issue 4 years ago • 1 comments

Hi I like the project a lot. The problem I'm currently facing is how to debug my language server in eclipse. My workflow is like this:

language-server/gradlew -p language-server unzipServer yarn --cwd webview yarn --cwd extension

after building I open vscode and test my changes. As you can imagine this would be more effective if I could run the language server in debug mode. But I'm not sure how to achieve this

armeausstahl avatar May 03 '21 06:05 armeausstahl

Hi! I moved this issue to sprotty-server as it fits better here.

The easiest way to debug the language server is to start it as separate process and connect via local socket. Xtext has a launcher class SocketServerLauncher for that.

spoenemann avatar May 03 '21 08:05 spoenemann