-
Notifications
You must be signed in to change notification settings - Fork 65
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
Need some way to debug brew templates #41
Comments
Hm. Executing BRCODEs one-by-one allows to identify bad line, however proper backtrace would be still good. |
I would suggest using BRCATCODE ( |
Avoiding |
That's right. Unfortunately I have no further ideas how could I improve error reporting, but would love to hear your suggestions. What also helps me to debug my reports is to check the structure of the returned object that also show the source code (command) beside the captured messages:
|
Please let me know if you would have any ideas to improve error reporting. |
Current brew errors are hard to impossible to debug.
It might throw Error: Error (
duplicate 'row.names' are not allowed
) in your BRCODEs: and you are alone with the error.The best I figured out is a binary search over the template source (just exclude half of the text) to identify the bad statement.
options(error=traceback), error=browser, error=recover do not help (I did not manage to figure out the failing line of code).
Nicer error reporting would be very handy.
The text was updated successfully, but these errors were encountered: