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

Debug "macros" (dbg! in templates) #13

Open
Tamschi opened this issue Oct 14, 2020 · 0 comments
Open

Debug "macros" (dbg! in templates) #13

Tamschi opened this issue Oct 14, 2020 · 0 comments
Labels
accepted This will be worked on type: feature Brand new functionality, features, pages, workflows, endpoints, etc.

Comments

@Tamschi
Copy link
Owner

Tamschi commented Oct 14, 2020

There currently isn't an easy way to inspect a component in the browser. Supporting a dbg!-like syntax that resolves into an HTML comment would provide a first avenue in this direction.

Writing dbg!{value} if value is e.g. "five" should result in a comment like <!-- value = "five" -->, using pretty Debug formatting.

Alternative options I considered are hooking into tooling for certain JavaScript frameworks, looking for browser tooling hooks or even writing my own inspector integration. However, for now all that would lead to considerable implementation effort compared to outputting plain comments.

@Tamschi Tamschi added type: feature Brand new functionality, features, pages, workflows, endpoints, etc. accepted This will be worked on labels Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted This will be worked on type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

No branches or pull requests

1 participant