Skip to content

Debugger: support for debugging HAML templates in Rails #2543

Open
@Nowaker

Description

@Nowaker

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp-wantedExtra attention is neededpinnedThis issue or pull request is pinned and won't be marked as stale

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions