You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can std::println please be made to work? Or can aztec::oracle::debug_log be made to work how std::println works in terms of where the output is displayed? It is extremely useful when running tests as the output gets shown alongside the test name like:
Using aztec::oracle::debug_log is tedious compared to this. I have to make sure I set LOG_LEVEL appropriately, save the output to a file so I can grep through it because of the firehose of data, then guess what test caused the debug log message, and then manually run individual tests to figure out if I guessed correctly or not. It would be a huge time saver to instead have debug output alongside the test names.
The text was updated successfully, but these errors were encountered:
I know https://docs.aztec.network/reference/developer_references/debugging says that
std::println
doesn't work in contracts, but it actually does work in public functions. It does not work in private functions, giving me this error when called:Can
std::println
please be made to work? Or canaztec::oracle::debug_log
be made to work howstd::println
works in terms of where the output is displayed? It is extremely useful when running tests as the output gets shown alongside the test name like:Using
aztec::oracle::debug_log
is tedious compared to this. I have to make sure I setLOG_LEVEL
appropriately, save the output to a file so I can grep through it because of the firehose of data, then guess what test caused the debug log message, and then manually run individual tests to figure out if I guessed correctly or not. It would be a huge time saver to instead have debug output alongside the test names.The text was updated successfully, but these errors were encountered: