51

Qt, Linux and everything: Debugging Qt WebAssembly

What's interesting here is that you can now debug WebAssembly applications with full C++ source-level debugging directly in Chrome, complete with breakpoints, variable inspection, and step-through debugging, just like a native desktop app.

What makes this particularly interesting is the technology stack: Emscripten embeds DWARF debugging symbols (the same format used for native Linux binaries) directly into WebAssembly binaries. A Chrome browser extension then reads these embedded symbols and reconstructs the original C++ source code view in the DevTools, mapping the compiled WebAssembly back to your Qt C++ source with full directory paths intact.

All of this would have seemed impossible not long ago.

2 hours agoN_Lens

I feel like this article is severely flawed.

Debugging wasm qt apps is not hard at all. Yes, as the article says, you need to build the code in debug mode, this isn’t unusual.

If you use qtcreator, it’s, and I hate this word, trivial. Most of the work comes from setting up the qt kit in qtcreator… which takes about 5 minutes.

Breakpoints just work. Debugging just works. Everything… works.

3 hours agoirishcoffee

I think you are disconnected from the pain of debugging in the past. The fact that it all works so seamlessly together now is a bit fascinating and astounding.

2 hours agoN_Lens

I am not at all disconnected, but I understand why you might say that.

2 hours agoirishcoffee

Very useful. It would be great for the browser become the cross-platform application target. I've been eagerly waiting for Qt WebAssembly to mature.

5 hours agoem3rgent0rdr

> It would be great for the browser become the cross-platform application target.

This is the kind of thing that I feel is very nice and terrible at the same time. Yes it is convenient but it is also such a complex piece of software, it's sad that it is required to run gui apps. Ok, it may not be required yet per say, but I have mixed feelings about this direction.

4 hours agobionsystem

Maybe not the browser per se, but a WASI runtime

4 hours agomkoubaa

Or both the browser and wasi. As I am doing with exaequOS

3 hours agobaudaux

I think this kind of thing could be really useful for a project I'm building.

33 minutes agomkoubaa

Is anyone using Qt for developing Mac apps these days? How is the integration after the recent Mac UI refresh?

4 hours agooblio

Qt for macOS maintainer here.

We've tweaked our styles to take the new design metrics into account, and fixed or worked around issues where we've seen them. We don't integrate with NSGlassEffectView and friends yet. If you find any issues in recently released version of Qt 6.10, 6.8 or 6.5, please report them upstream, thanks!

See also https://www.qt.io/blog/qt-on-macos-26-tahoe

3 hours agotorarnv

Yes! I'm developing my note-taking app[1] for macOS and now working on a mobile version.

[1] https://get-notes.com