Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
debug_log.hpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_LOG(...)
 
#define DEBUG_LOG_ALL(container)
 

Macro Definition Documentation

◆ DEBUG_LOG

#define DEBUG_LOG (   ...)

To be used to create a verbose trace of execution. This helps with comparing runs that should have had the same result, but don't. It is less useful for other kinds of correctness, but if we know what values we expect (or not) it still can be useful.

Compilation: cmake -DCMAKE_CXX_FLAGS="-DBBERG_DEBUG_LOG" ... Then, compare outputs of the program with another run of the same program (it's good to remove sources of randomness, if present). Once you have a divergence you can use the environment variable DEBUG_LOG_ABORT=... with a string pattern to abort the program, stopping in a debugger.

Definition at line 105 of file debug_log.hpp.

◆ DEBUG_LOG_ALL

#define DEBUG_LOG_ALL (   container)

Definition at line 106 of file debug_log.hpp.