10 Debugging WebAssembly
In this chapter, you’ll learn several techniques to debug your WAT code. We’ll discuss logging to the console and using alerts, as well as how to log stack traces to the console. We’ll cover using the debugger in Firefox and Chrome, the differences between them, and the limitations of each debugger.
A source map maps code running in the browser to the original precompiled source code. It allows a developer writing in languages like TypeScript or frameworks, such as React, to step through their original code to debug it. WebAssembly toolchains, such as Emscripten, map the generated WebAssembly binary back to the original ...
Get The Art of WebAssembly now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.