aztec-nr - noir_aztec::oracle::debug_log

Function debug_log_format

pub fn debug_log_format<let M: u32, let N: u32>(msg: str<M>, args: [Field; N])

Utility function to console.log data in the acir simulator. This variant receives a format string in which the ${k} tokens will be replaced with the k-eth value in the args array. Examples: debug_log_format("get_2(slot:{0}) =>\n\t0:{1}\n\t1:{2}", [storage_slot, note0_hash, note1_hash]); debug_log_format("whole array: {}", [e1, e2, e3, e4]);