-
Notifications
You must be signed in to change notification settings - Fork 3
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
boom recursively to error #29
Comments
We might also boom recursively to a printed message, using regex. https://twitter.com/antoine_fabri/status/1398012181174759433 The default behavior would be similar as in OP, so a step further than what the tweet hints to. for completeness we can also boom to warning and boom to message boom_to_error This work might be leveraged for flow, we'd have on one hand the diagrams for the stack to error and on the other hand the boomed output for all those. |
A first step is just to rig recursively, it's in fact very easy to draft, just However this fails in recursive functions -> infinite recursion. Strangely even calls to I think it might be solved by calling an |
We would have a function similar to rig but :
This way no need for debugonce hell, moreover the case when the error is in a function that was built at runtime (that we can't debugonce from the outside) is especially painful to debug but with this trick would be much less painful.
Looks not easy but useful.
The text was updated successfully, but these errors were encountered: