I’m writing my first hApp and I’m trying to debug the code and I can’t figure out how to write anything to the console or to a log file for debugging. This works through a node.js front end and I have TS files that call into the zomes. It returns data but I do not see any output from my Rust code in the console nor in any log files. I have tried:
io::stdout().write_all(b"Testing stdout");
and also
debug!("Testing debug macro");
And I get no output from that. It looks like the calls succeed and data is returned to the TS side and then I can write the data to the console, but from within Rust I can’t get any visibility into what is going on. Ideally, I would like to be able to write to the console and also to a log file.