Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

println! not printing to console #379

Open
ilyvion opened this issue Nov 21, 2019 · 1 comment
Open

println! not printing to console #379

ilyvion opened this issue Nov 21, 2019 · 1 comment

Comments

@ilyvion
Copy link

ilyvion commented Nov 21, 2019

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
Copy link

tehroot commented Jan 7, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants