Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[lsp4e-dev] Integrating Ruby debugger

Hello all!

I'm trying to add the Readapt debug adapter (https://github.com/castwide/readapt) to my Ruby LSP-based plugin (https://github.com/PyvesB/eclipse-solargraph).

Unfortunately, I can't quite get things working correctly. I implemented a very simple debug launch shortcut and a DSPLaunchDelegate. When the debug shortcut is launched, I can see the Debug server starting up (a monitor console appears with "Readapt Debugger 0.7.1 is listening HOST=127.0.0.1 PORT=1234 PID=XXXXX"), but the DSPLaunchDelegate stays stuck at "Starting debug session: Initializing connection to debug adapter".

Any ideas? I've shared my work in progress on a branch (https://github.com/PyvesB/eclipse-solargraph/tree/debug). If you have Ruby set up on your machine and want to try things out, run "gem install readapt" and simply replace the currently hardcoded location on ReadaptDebugRunDelegate:27.

Note that I have successfully managed to make the reverse pattern work, i.e. starting Readapt from the command line and making the DSPLaunchDelegate attach to the exisitng server.

Thanks in advance!

Pierre-Yves







Back to the top