Debugging the game
To debug a traditional program, be it in Java, C#, or C++, we must set breakpoints and step through the code. In JavaScript, we can type the word debugger
to set a breakpoint, but although WebAssembly runs in the browser, it isn't JavaScript. So, how do we debug it?
There's a lot of conflicting information about debugging with WebAssembly. How do you debug WebAssembly? Well, according to the official Rust WebAssembly documentation, it's simple – you can't!