debug error - Failed to set breakpoints
I start my rails app with
RUBY_DEBUG_OPEN=true RUBY_DEBUG_PORT=52203 bin/rails server
then i start the debugger with this configuration:
{ "label": "Attach to Rails server", "adapter": "rdbg", "request": "attach", "cwd": "$ZED_WORKTREE_ROOT", "env": { "RUBY_DEBUG_PORT": "52203" } }
the terminal where i started the server shows that the debugger is connected but in the zed log i see this error:
2025-07-10T10:41:00+02:00 ERROR [project::debugger::session] failed to set breakpoints for "/home/francesco/projects/work/cdss_monitoring/app/controllers/charts_controller.rb": /home/francesco/projects/work/cdss_monitoring/app/controllers/charts_controller.rb is not available 2025-07-10T10:41:00+02:00 ERROR [project::debugger::session] failed to set breakpoints for "/home/francesco/projects/work/cdss_monitoring/app/controllers/concerns/dea_ps_charts_concern.rb": /home/francesco/projects/work/cdss_monitoring/app/controllers/concerns/dea_ps_charts_concern.rb is not available 2025-07-10T10:53:44+02:00 INFO [dap::transport] Debugger closed the connection 2025-07-10T10:53:44+02:00 ERROR [project] client is closed
the path shown points to the correct file
I have the same error
Hi! Sorry for the late reply, but can you please check if this issue is still happening? I think it was fixed in Zed some time ago. Thanks!
same error
err.json DAP Logs - RPC Messages
{
"label": "🧲 Attach",
"adapter": "rdbg",
"request": "attach",
"cwd": "$ZED_WORKTREE_ROOT",
"env": {
"RUBY_DEBUG_PORT": "3001"
}
}
bundle exec rdbg --port 3001 --open --nonstop -- bin/rails s
Hi! Sorry for the late reply, but can you please check if this issue is still happening? I think it was fixed in Zed some time ago. Thanks!
nope, still seeing the exact same error, i'm on zed latest test release