Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <debugger.hpp>
Public Member Functions | |
InteractiveDebugger (tracegen::TraceContainer &trace) | |
void | run (uint32_t starting_row=0) |
Private Member Functions | |
void | print_columns (const std::vector< std::string > ®ex) |
void | set_column (const std::string &column_name, const std::string &value) |
void | test_relation (const std::string &relation_name, std::optional< std::string > subrelation_name) |
Private Attributes | |
tracegen::TraceContainer & | trace |
uint32_t | row = 0 |
std::string | prefix |
An interactive debugger for the AVM2.
(1) To use it in tests add the following after you construct the trace:
auto container = TestTraceContainer::from_rows(trace); InteractiveDebugger debugger(container); debugger.run();
(2) To use it to debug avm2_check_circuit
failures just set the AVM_DEBUG
environment variable.
Definition at line 21 of file debugger.hpp.
|
inline |
Definition at line 23 of file debugger.hpp.
|
private |
Definition at line 130 of file debugger.cpp.
void bb::avm2::InteractiveDebugger::run | ( | uint32_t | starting_row = 0 | ) |
Definition at line 76 of file debugger.cpp.
|
private |
Definition at line 163 of file debugger.cpp.
|
private |
Definition at line 177 of file debugger.cpp.
|
private |
Definition at line 32 of file debugger.hpp.
|
private |
Definition at line 31 of file debugger.hpp.
|
private |
Definition at line 30 of file debugger.hpp.