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

Ability to view and debug expanded source code from macros #4

Closed
drujensen opened this issue Jul 23, 2017 · 2 comments
Closed

Ability to view and debug expanded source code from macros #4

drujensen opened this issue Jul 23, 2017 · 2 comments
Assignees

Comments

@drujensen
Copy link

The ability to view and debug the expanded source code after macros have been applied.

@drujensen drujensen changed the title Ability to view and debug expanded source code from Macros Ability to view and debug expanded source code from macros Jul 23, 2017
@nobodywasishere
Copy link
Member

Hypothesizing here, but maybe it could add a {% debug %} to the end of the macro source code before compiling and pull the result out?

@nobodywasishere
Copy link
Member

I have a proof of concept working. It basically calls crystal tool expand ... on the file/line and adds a hover with the result. Currently it reruns every time - don't know if there's a way to make that more efficient. This may also just work better as a right click utility versus a constant hover.

Screenshot_2023-05-19_01-29-06

Need to add more configuration and test in larger projects / across different files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants