Qt, Linux and everything: Debugging Qt WebAssembly
qtandeverything.blogspot.com·6h·
Discuss: Hacker News
🛡️WebAssembly Security
Preview
Report Post

One of the most tedious tasks a developer will do is debugging a nagging bug. It’s worse when it’s a web app, and even worse when its a webassembly web app.

The easiest way to debug Qt Webassembly is by configuring using the -g argument, or CMAKE_BUILD_TYPE=Debug . Emscripten embeds DWARF symbols in the wasm binaries.

NOTE: Debugging wasm files with DWARF works only in the Chrome browser with the help of a browser extension.

C/C++ DevTools Support (DWARF) browser extension. If you are using Safari or Firefox, or do not want to or cannot install a browser extension, you will need to generate source maps, which I will look at in my next blog post.

DWA…

Similar Posts

Loading similar posts...