Debug a WebAssembly Module Written in Rust using console.log

InstructorNik Graf

Share this video with your friends

Send Tweet

Having some kind of debugging tool in our belt is extremely useful before writing a lot of code. In this lesson we build a println!()-style syntax using JavaScript’s console.log to be able to log out values in Rust.

Jack Hollis London
~ 6 years ago

The extern "C" code block isn't in my ./crate/src/lib.rs file?

Nik Grafinstructor
~ 6 years ago

@Jack the "C" is not mandatory as far as I know or what do you mean?