NLESC-JCER / cpp2wasm

Guide to make C++ available as a web application
https://nlesc-jcer.github.io/cpp2wasm/
Apache License 2.0
22 stars 6 forks source link

Debugging webassembly in Chrome #96

Open sverhoeven opened 4 years ago

sverhoeven commented 4 years ago

Chrome is getting debugging support for WebAssembly modules. Aka add breakpoint on a C++ line in DevTools. It would be nice to have a chapter about debugging once this support has been included in Chrome.

To get debugging working you need to enable Dwarf while compiling, see https://emscripten.org/docs/debugging/CyberDWARF.html