Debug a WebAssembly Module Written in Rust using console.log

Nik Graf
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
Jack Hollis London
~ 2 years ago

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

Nik Graf
Nik Grafinstructor
~ 2 years ago

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