Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nil absolute path displayed for LineBreakpoint in ERB files #1129

Open
charkost opened this issue Jan 2, 2025 · 0 comments
Open

Nil absolute path displayed for LineBreakpoint in ERB files #1129

charkost opened this issue Jan 2, 2025 · 0 comments

Comments

@charkost
Copy link

charkost commented Jan 2, 2025

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant