ruby-debug / ruby-debug-ide

An interface which glues ruby-debug to IDEs like Eclipse (RDT), NetBeans and RubyMine.
https://www.jetbrains.com/ruby/features/ruby_debugger.html
Other
370 stars 83 forks source link

allow clients to connect over unix domain sockets #166

Closed tdyas-stripe closed 4 years ago

tdyas-stripe commented 5 years ago

Allow debugger clients to connect to the in-process debug server over a UNIX domain socket instead of a local TCP socket. My company has been running a variant of this PR (against a 0.6.x release) internally since last September.

tdyas-stripe commented 5 years ago

Looks like CI builds failed for Ruby v1.8.7 and v1.9.3. Any suggestions on how to modify the API to work on those earlier versions?

tdyas commented 4 years ago

This should be closed in favor of https://github.com/ruby-debug/ruby-debug-ide/pull/183.

alir2t2 commented 2 years ago

To connect client using a port I used this configuration shown below:

Launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "rdebug-ide",
            "type": "Ruby",
            "request": "attach",
            "remoteHost": "127.0.0.1",
            "remotePort": "1234",
            "remoteWorkspaceRoot": "${workspaceRoot}",
            "cwd": "${workspaceRoot}"
        }
    ]
}

rdebug-ide started with the following command: rdebug-ide --port 1234 -- rails/server s

If I use unix socket instead of port, how do I connect my client to the unix socket?