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

Further cgx debugging improvements #39

Open
Korijn opened this issue May 18, 2022 · 0 comments
Open

Further cgx debugging improvements #39

Korijn opened this issue May 18, 2022 · 0 comments

Comments

@Korijn
Copy link
Collaborator

Korijn commented May 18, 2022

I just wanted to put it out there that it is technically possible to also make the <template> section (or the render function really, depending on how you look at it) debuggable.

You would need to ensure the generated render AST is not one big return statement, but instead has separate lines corresponding to the individual elements in <template>, and then maintain a lineno mapping while generating the AST statements.

This is how Vue does it, too!

I wouldn't recommend diving into this right away but just wanted to make you aware of the possibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant