Closed LarryNorth closed 4 years ago
The problem also occurs when running locally on Windows 10:
VSCode Ruby: 0.27.0 Ruby: 2.7.1 VS Code: 1.47.3 Windows 10 Version 2004 Docker Desktop Version 2.3.0.4 (46911)
Apparently the command run by rdebug-ide
must be from the Ruby ecosystem. Using bundle
to execute the target command works:
command: rdebug-ide --host 0.0.0.0 --port 1234 --dispatcher-port 26162 -- /usr/local/bin/bundle exec /bin/pwd
Explanations welcome.
Your environment
VSCode Ruby: 0.27.0 Ruby: 2.7.1 VS Code: 1.47.3 with Remote - WSL: 0.44.4 Windows 10 Version 2004 WSL 2 with Ubuntu Version 20.04.04 LTS Docker Desktop Version 2.3.0.4 (46911), using WSL 2 based engine
Expected behavior
Run > Start Debugging runs the command
Actual behavior
I've used rdebug-ide successfully with a simple Rack app and a simple Rails app, but found it to fail with a complex Roda/Opal app (https://github.com/Rails-18xx/Rails). I am able to demonstrate the error above in the bare-bones, do-nothing app below. Sorry if I'm missing something obvious.
Gemfile:
Dockerfile
docker-compose.yml
.vscode/launch.json