eclipse-sprotty / sprotty-server

Server implementation for the Sprotty diagramming framework
https://eclipse.org/sprotty
Eclipse Public License 2.0
23 stars 19 forks source link

seperate debugging #83

Open armeausstahl opened 3 years ago

armeausstahl commented 3 years ago

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

spoenemann commented 3 years ago

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.