June 2021
Intermediate to advanced
304 pages
7h 49m
English
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 ...
Read now
Unlock full access