Shopify / Shopify/ruby-lsp

Debugger: support for debugging HAML templates in Rails

Open
#2,543 2 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.