-
Notifications
You must be signed in to change notification settings - Fork 320
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
Feature request: console.table #91
Comments
@mds1 is this smth that should be done in Foundry? (I don't know how the |
It should definitely be possible to instruct Forge to selectively format the whitespaces differently based on what log events get emitted. |
Maybe it can added to |
Definitely supportive of a |
@PaulRBerg should it follow C printf's format? or Maybe something like |
@lucaslain I honestly don't mind either way. Just having the feature implemented (in whichever way is simpler) would be a huge boon for the Foundry debugging UX. |
In JavaScript, console.table is a very useful utility that pretty prints the input data.
Example:
You would get something like this in the console:
Many times I find myself adding empty spaces to my Solidity
console.log
statements just so that I can see the outputs aligned on the vertical axis.It would be nice to have a helper function that creates a table with ASCII characters (e.g.
-
) and auto-indents the outputs for us.The text was updated successfully, but these errors were encountered: