I have written a library for a toy compiler and created a small web-demo which uses web assembly to run this compiler in the browser. Unfortunately, there is a strange bug that the wasm version produces slightly different code than the .exe binary, for some very specific inputs. Debugging this turns out to be very difficult, because I cannot use println! in my library, since the web assembly version does not console.log stdout. Is there any way to get debug information from my library to the browser console?