Skip to content

Nil absolute path displayed for LineBreakpoint in ERB files #1129

@charkost

Description

@charkost

@path = iseq.absolute_path

The iseq.absolute_path seems to always be nil for .erb files even though the breakpoint works correctly and stops the execution
at the specifiied line in the erb file.

Therefore the show_bps is broken for such breakpoints showing only the line number:

break app/views/earth/users/index.html.erb:50
break 
0  BP - Line  :50 (line)

Should the mentioned code be changed to:

@path = iseq.absolute_path || iseq.path

like it is already done at:

if DEBUGGER__.compare_path((iseq.absolute_path || iseq.path), self.path) &&

or should this be fixed at the ruby lang level and make iseq.absolute_path properly return the erb file's absolute path?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions