MicroPython and source code debugging in VS Code

We just gave MicroPython something it has never had: a real debugger.

Set a breakpoint in VS Code. Press F5. Your code deploys to the board and execution stops on that line, with the call stack, your variables, and a working watch window. No JTAG, no debug probe, no extra wiring. One USB cable.

If you have written embedded Python, you know the alternative: scatter print statements, reflash, guess, repeat.

Why we could build this: we have shipped a source-level debugger for C# on microcontrollers for years, in production devices. The hard part was never the VS Code side. It was the protocol running on a chip with kilobytes of RAM, and we already had that working. We brought it to MicroPython.

It is free, MIT licensed, and works on Raspberry Pi Pico, Pico 2, and ESP32-S2/S3 boards. Firmware installs from inside the extension.

3 Likes

ok let me show you! :nerd_face:

2 Likes