3 ms·
I think you can easily log out to the browser console. I believe hooking up a debugger to your IDE is also possible. I haven’t tried it yet though: https://ems
by 4pkjai 3y ago
I think you can easily log out to the browser console.
I believe hooking up a debugger to your IDE is also possible. I haven’t tried it yet though:
https://emscripten.org/docs/porting/Debugging.html https://emscripten.org/docs/porting/Debugging.html?
Maybe I’ll give it a go and write about it in my next post.
- shortrounddev2 3y agoChrome has experimental support for debugging symbols in was but I've never gotten them to work. Personally I'm not going to bother with working on a project unless I can easily pit breakpoints in the original source
- flohofwoe 3y agoCheck out this new-ish extension for VSCode: https://marketplace.visualstudio.com/items?itemName=ms-vscode.wasm-dwarf-debugging https://marketplace.visualstudio.com/items?itemName=ms-vscod... ...IME this is a lot easier to setup than the Chrome extension (the problem in Chrome that's easy to overlook is to allow Chrome access to your source code directory, the VSCode extension doesn't require such brittle details). The blog post I posted in a sibling comment above details how to setup VSCode so that debugging works by just pressing F5 in VSCode like it would work for natively compiled code.