Chapter 12. Debugging
This chapter covers
- Various debugging methods for WebAssembly modules
- Error handling during compilation and at runtime
- Debugging with browser developer tools
At some point during development, you’ll likely discover that your code isn’t working as expected, and you need to find a way to track down the issue. Sometimes tracking it down is as simple as reading over the code. Other times, you need to dig deeper.
At the time of writing, WebAssembly’s debugging options are a bit limited, but this will change as browser and IDE (integrated development environment) tooling improve. At the moment, you have the following options for debugging a WebAssembly module:
- You can make a small number of changes and then compile and ...
Get WebAssembly in Action 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.