Espressif Systems has released esp-idf-monitor-js, a serial console for ESP-IDF that runs in a browser. The page gets a Web Serial or WebUSB port, and the monitor speaks the same keyboard commands as the Python esp-idf-monitor. Ctrl+] exits, Ctrl+T opens the menu for reset, bootloader, flash, output, timestamps and log capture, and Ctrl+C is passed to the chip instead of quitting. There are also command-stream calls: reset(), bootloader(), send(text), expect(pattern, timeoutSeconds) and sleep(seconds).
Address decoration reads the ELF symbol table and the DWARF line table from the application ELF, so a program counter prints as a function, source file and line. ROM addresses are labeled ROM. Requests for gdbstub, core dumps and flashing are reported as events rather than over a WebSocket. Flashing is done by closing the monitor and using esptool-js on the same port.
A TypeScript example page loads an ELF and starts a monitor, and GitHub Actions publishes it to GitHub Pages .…