MicroPython Studio — Live MicroPython Debugger for VS Code
Set breakpoints on a real Raspberry Pi Pico 2 W, step through MicroPython code, inspect locals and call stacks, and capture live runtime traces. MicroPython Studio also provides a REPL, device file manager, firmware tools, CircuitPython support and an optional local AI assistant.
Install from VS Code Marketplace · Watch the real-device debugger demo · Read the debugger guide

See what makes the debugger different
On compatible debugger-enabled firmware, MicroPython Studio provides source breakpoints, step/continue controls, local/global variable inspection, call stacks and live RTA function tracing, without requiring a separate JTAG probe for those software-debugging features. The demo shows the debugger operating on a real Pico 2 W.
Hardware-support status matters. The existing Pico 2 W debugger workflow has been exercised on real hardware. The new Pico-family frozen-firmware builds and ESP32-S3 debugger improvements are under separate hardware qualification; an ESP32-C3 debugger has not been released. Do not interpret a successful CI build as evidence that your board is supported. Read the board-specific firmware and test status before flashing anything.
Experimental debugger firmware — for debugging and testing your own code ONLY. NOT FOR PRODUCTION USE. This warning applies to unvalidated firmware in the TestBuilds download directory, not to an approved, board-specific stable release. A successful CI build does not mean the image is hardware-approved. Verify the exact board model, back up your files and follow the matching firmware instructions before flashing. Download Debug Firmware opens the file or download page; Studio does not automatically flash the board or overwrite boot.py.
Why Use It?
| Need |
MicroPython Studio Helps With |
| Start quickly |
Project wizard, environment setup, board config, templates |
| Work with real boards |
Serial REPL, file explorer, upload/download, package install |
| Debug harder problems |
Breakpoints, stepping, locals, call stack, debug firmware flow |
| Test without hardware |
QEMU-based simulator for fast prototype runs |
| Use wireless workflows |
MicroPython WebREPL and CircuitPython Web Workflow support |
| Keep code private |
Optional local AI assistant powered by Ollama |
Main Features
Device File Explorer
Browse, upload, download, rename, delete, and create files on your board.
One-Click Run and Shell
Run the active Python file or open an interactive REPL from VS Code.
Live Debugger
Set breakpoints, step through code, inspect locals, and view call stack data.
CircuitPython Support
Detect CIRCUITPY drives, install libraries, sync files, and use Web Workflow.
MicroPython WebREPL
Configure Wi-Fi access and connect to supported boards over the network.
Firmware Tools
Download and flash firmware for supported targets, including debug firmware.
QEMU Simulator
Run code against an emulated MicroPython target when hardware is not nearby.
Private AI Assistant
Use local Ollama models for code help and device-error investigation.
Quick Start
- Install the extension in VS Code.
- Run MicroPython: Setup Development Environment.
- Connect your board by USB.
- Run MicroPython: Refresh Device Files.
- Create or open a project.
- Press Run to execute your active Python file.
That is the normal daily loop: connect, edit, run, inspect files, repeat.
Common Commands
| Command |
What It Does |
MicroPython: Setup Development Environment |
Creates the Python environment and installs required tools |
MicroPython: Create New Project |
Starts a guided project setup |
MicroPython: Open Existing Project |
Opens a project with existing device configuration |
MicroPython: Refresh Device Files |
Connects to the board and refreshes the device file tree |
MicroPython: Run Script on Device |
Runs the active Python file |
MicroPython: Open Device Shell |
Opens an interactive REPL |
MicroPython: Upload File to Device |
Copies one file to the board |
MicroPython: Upload Project to Device |
Copies the project to the board |
MicroPython: Start Debug |
Starts the live debugger setup/connect flow |
MicroPython: Flash Firmware |
Opens firmware flashing tools |
Debugging
The debugger is designed for embedded Python workflows where JTAG is not always practical.
It supports:
breakpoints
stepping
locals inspection
call stack view
runtime trace events
live function/runtime tracing (observed elapsed-time share, not CPU utilisation)
debugger-enabled firmware for supported board-specific configurations; existing published Pico firmware may need the legacy setup steps
test-only frozen debugger images are not published as stable releases until hardware validation
For best results, start with a simple script first, confirm upload/run works, then enable the debugger.
Debugger USB connections
The debugger uses a separate connection from the REPL. For compatible debugger-enabled test firmware, the connection layout is:
| Board |
Project REPL and file upload |
Debugger + RTA |
USB cables |
| Pico / Pico W / Pico 2 / Pico 2 W (frozen UF2 candidate) |
CDC0 COM |
CDC1 COM |
One |
| ESP32-S3 test candidate |
Physical Serial/JTAG COM |
Physical native-USB debugger COM |
Two |
Firmware must match the exact board. See board support and firmware status for stable versus experimental builds and connection guidance.
Simulator
The built-in simulator is useful when you want to test application logic before connecting a board.
- Start or stop it from the status bar.
- Run code through the same VS Code workflow.
- Use local
lib/ folders for dependencies.
- The simulated filesystem is read-only, so direct uploads are blocked with a clear warning.
Local AI Assistant
MicroPython Studio can use Ollama for private local AI help.
- Install Ollama.
- Open the MicroPython Studio AI view.
- Let the extension prepare the local model.
- Ask questions about your active file, device errors, or MicroPython APIs.
Your source code stays on your machine.
Supported Workflows
| Platform |
USB Serial |
File Explorer |
Packages |
Wireless |
Debugging |
| MicroPython |
Yes |
Yes |
mip |
WebREPL |
Supported targets |
| CircuitPython |
Yes |
CIRCUITPY drive / Web Workflow |
circup |
Web Workflow |
Limited |
| Digi XBee |
Yes |
Project/library support |
Bundled helpers |
Device dependent |
Device dependent |
| Simulator |
TCP REPL |
Read-only target |
Local lib/ |
Local only |
Prototype/debug flow |
Project Status
MicroPython Studio is actively developed and already used by many embedded Python developers. The current focus is reliability: port locking, debugger setup, ESP32-S3 workflows, automated CI checks, and better regression testing.
If something breaks, please open an issue with:
- board name
- firmware type and version
- operating system
- selected port
- output from the MicroPython IDE or MPy Debugger Setup panel
Useful Links
Acknowledgements
MicroPython Studio builds on excellent open source projects:
All bundled third-party files retain their original license headers.
Support
Questions, bugs, and ideas are welcome.
License
MicroPython Studio is licensed under the MIT License.
XBee MicroPython type hints and libraries are sourced from Digi International's xbee-micropython, also under the MIT License.