Skip to content

debug error - Failed to set breakpoints #141

@francescob

Description

@francescob

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions