Using debugPort with a socket path does not seem to work with a relative path.
louim opened this issue · 2 comments
louim commented
Hello, this issue is related to ruby/debug#982.
Since the autogenerated socket name was too long, I decided to use a local socket path:
{
"type": "rdbg",
"name": "Attach with rdbg",
"request": "attach",
"debugPort": "tmp/rdbg.sock",
}
However with this in conjunction with RUBY_DEBUG_OPEN=true RUBY_DEBUG_SOCK_PATH=tmp/rdbg.sock rails s
, I'm always the following error when trying to Attach to the started process.
I would have expected the config to look up the file relative to the workspace root directory? Using an absolute path to the same folder works: "debugPort": "/Users/louis-michel.couture/work/my_project/tmp/rdbg.sock",
.
I also tried:
"debugPort": "./tmp/rdbg.sock",
"debugPort": "../tmp/rdbg.sock",
thinking it was maybe relative to the launch.json location.
But both of those didn't work.