Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>MicroPython StudioNew to Visual Studio Code? Get it now.
MicroPython Studio

MicroPython Studio

niwantha33

|
1,678 installs
| (1) | Free
Live MicroPython debugger for Raspberry Pi Pico 2 W: breakpoints, stepping, locals, call stack and runtime tracing. Includes REPL, file tools, ESP32 and CircuitPython workflows.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

MicroPython CircuitPython License: MIT

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

  1. Install the extension in VS Code.
  2. Run MicroPython: Setup Development Environment.
  3. Connect your board by USB.
  4. Run MicroPython: Refresh Device Files.
  5. Create or open a project.
  6. 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.

  1. Install Ollama.
  2. Open the MicroPython Studio AI view.
  3. Let the extension prepare the local model.
  4. 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

  • Project Website
  • MicroPython Documentation
  • CircuitPython Documentation
  • Project Repository
  • Issue Tracker
  • Contributing Guide
  • Code of Conduct
  • YouTube Channel

Acknowledgements

MicroPython Studio builds on excellent open source projects:

Project License Used For
MicroPython MIT Runtime, REPL, tools
mpremote MIT Device communication
CircuitPython MIT CircuitPython support
circup MIT CircuitPython library management
MicroPython WebREPL MIT Wireless REPL workflow
websocket-client Apache 2.0 WebREPL transport
term.js MIT Terminal UI
FileSaver.js MIT Browser-side file save support
xbee-micropython MIT XBee stubs and helpers
esptool GPL-2.0 ESP firmware flashing
pyserial BSD Serial communication
QEMU GPL-2.0 Simulator backend
Ollama MIT Local AI runtime
Gemma Gemma Terms Local AI model option

All bundled third-party files retain their original license headers.


Support

Questions, bugs, and ideas are welcome.

  • Email: niwantha33@gmail.com
  • Issues: github.com/niwantha33/micropython-studio/issues
  • YouTube: youtube.com/@NiwanthaDev

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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft