Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 532 Bytes

debugging-operations.md

File metadata and controls

12 lines (7 loc) · 532 Bytes

Debugging operations

In circom there is an operation that can be used while developing circuits to help the programmer debug (note that there are no input/output operations on the standard input/output channels). To this end, the operation log has as parameter a non-conditional expression (i.e., not including the ?;_ operator). The execution of this instruction prints the result of the evaluation of the expression in the standard error stream. As examples consider:

log(135);
log(c.b);
log(x==y);