ruby icon indicating copy to clipboard operation
ruby copied to clipboard

debug error - Failed to set breakpoints

Open francescob opened this issue 6 months ago • 4 comments

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

francescob avatar Jul 10 '25 08:07 francescob

I have the same error

hazg avatar Jul 12 '25 15:07 hazg

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!

vitallium avatar Aug 24 '25 17:08 vitallium

same error

err.json DAP Logs - RPC Messages

Image
  {
    "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

hazg avatar Aug 25 '25 08:08 hazg

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

francescob avatar Aug 25 '25 09:08 francescob