Closed FiloSpaTeam closed 3 years ago
There is something strange, when i launch docker with docker-compose up -d
, i see spawn message about debug but nothing about Rails server, later i connect VSCode and rails server starts working.
But nothing is shown inside VSCode, no breakpoints is working... what i'm missing?
Ok now seems working.
What i changed:
{
"version": "0.2.0",
"configurations": [
{
"name": "Rails",
"type": "Ruby",
"request": "attach",
"remoteHost": "0.0.0.0",
"remotePort": "1234",
"remoteWorkspaceRoot": "/app",
"cwd": "${workspaceRoot}",
"showDebuggerOutput": true
} ,
{
"name": "Sidekiq",
"type": "Ruby",
"request": "attach",
"remoteHost": "0.0.0.0",
"remotePort": "1235",
"remoteWorkspaceRoot": "/app",
"cwd": "${workspaceRoot}",
"showDebuggerOutput": true
}
]
}
bundle exec rdebug-ide --host 0.0.0.0 --port 1234 --dispatcher-port 26162 -- bin/rails s -p 3000 -b 0.0.0.0
launch.json
Dockerfile
docker-composer.yml