clj-native playground

Source Clojure-flavoured · compiled to WebAssembly in your browser

Values in DevTools

To see the program's values as Clojure prints them, in Scope, Watch and the console, while you step through it in Chrome's DevTools:

  1. Download the DWARF extension (11 MB) and unzip it. It's the Chrome Web Store's C/C++ DevTools Support (DWARF), with the support for this added, which the store's doesn't have yet.
  2. Open chrome://extensions and turn on Developer mode.
  3. If you have the store's C/C++ DevTools Support (DWARF), turn it off.
  4. Click Load unpacked, and pick the unzipped devtools-dwarf-extension folder. It shows as clj-wasm debugger + C/C++.
  5. In DevTools' Settings (⚙) › Preferences › Console, turn on Custom formatters. Without it, DevTools shows the program's values as i64 {value: …}.

Then, with Debug info on and DevTools open, Run pauses before the program's first form.