Debugger: support for debugging HAML templates in Rails
Open
@vinistock is already working on this.
Since Sep 12, 2024.
enhancement
help-wanted
pinned
- Dominant language
- Ruby
- Stars
- 2k
- Forks
- 281
- Avg merge
- 2h 14m
- Merged PRs (30d)
- 6
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.