3.2. Debugging

In circom there is an operation that can be used while developing circuits to help the programmer to 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, (that is, 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);