println! not printing to console
ilyvion opened this issue · 1 comments
ilyvion commented
The console!
macro documentation says
If you want to print things to the console in a standardized way, use
println!
instead.
But when I use println!
, I don't get any output in the console.
All I've done is cargo new foobar
, add stdweb="0.4.20"
to my Cargo.toml
, and do cargo web start
, and all it ever says in console is
Finished loading Rust wasm module 'foobar'
I know it's otherwise working, though, because other code I put in there does stuff, like using stdweb::console!(log, "Hello World!");
instead of println!
prints to console just fine.
tehroot commented
I've had the same issue and just figure it's something I'm doing wrong. Haven't been able to figure out why either.