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

Debugger: support for debugging HAML templates in Rails #2543

Open
1 task done
Nowaker opened this issue Sep 12, 2024 · 0 comments
Open
1 task done

Debugger: support for debugging HAML templates in Rails #2543

Nowaker opened this issue Sep 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request help-wanted Extra attention is needed

Comments

@Nowaker
Copy link

Nowaker commented Sep 12, 2024

I have checked that this feature is not already implemented

  • This feature does not exist

Use case

Debug HAML templates just like it's Ruby code by allowing to set breakpoints there.

Description

Ditto

Implementation

HAML templates end up "compiled" into Ruby code in a way that the stacktrace shows the path and line numbers almost verbatim, so it shouldn't be hard to map the path seen in stacktrace to local file path. https://github.com/ruby/debug/blob/61de9d87f02fca5d46561157abdce168022a9eb5/lib/debug/server_dap.rb#L321

@Nowaker Nowaker added the enhancement New feature or request label Sep 12, 2024
@vinistock vinistock added the help-wanted Extra attention is needed label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help-wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants