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

add debug and log macros #52

Open
kellyselden opened this issue Mar 3, 2017 · 0 comments
Open

add debug and log macros #52

kellyselden opened this issue Mar 3, 2017 · 0 comments

Comments

@kellyselden
Copy link
Owner

The debug would put a debugger; call in the middle of a macro tree for you:

foo: conditional('bar', debug(or('qwer', 'yui')), 'asdf')

log would be very similar. It would log out vitals for you (keys, values, etc.):

foo: conditional('bar', log(or('qwer', 'yui')), 'asdf')

They should be stripped from production builds, since they're only meant as temporary debugging helpers.

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