<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/on-chip-debug-for-some-micropython-qdnlutrn0" -->

---
title: On Chip Debug For (Some) MicroPython | daily.dev
description: A new open-source extension from ghi-electronics brings full on-chip source-code debugging for MicroPython into Visual Studio, letting developers set...
canonical: https://daily.dev/posts/on-chip-debug-for-some-micropython-qdnlutrn0
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: On Chip Debug For (Some) MicroPython | daily.dev
og:description: A new open-source extension from ghi-electronics brings full on-chip source-code debugging for MicroPython into Visual Studio, letting developers set...
og:url: https://daily.dev/posts/on-chip-debug-for-some-micropython-qdnlutrn0
og:image: https://api.daily.dev/og/posts/qDNLUTRN0.png
og:image:alt: On Chip Debug For (Some) MicroPython
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# On Chip Debug For (Some) MicroPython

**[Hackaday](https://daily.dev/sources/hackaday)** · 2 min read · 0 upvotes · 0 comments

## Summary

A new open-source extension from ghi-electronics brings full on-chip source-code debugging for MicroPython into Visual Studio, letting developers set breakpoints, inspect variables, and view control flow instead of relying on print statements. It works with supported Raspberry Pi Pico boards and ESP32 chips using a standard USB cable, though it requires either a custom-built or provided MicroPython firmware image. Some quirks exist, including setup errors on certain boards like the RP2040 GEEK and a known Linux/ESP32-S3 issue, plus limitations such as breakpoints halting all threads and inability to catch already-handled exceptions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://hackaday.com/2026/09/18/on-chip-debug-for-some-micropython>

## Questions this post answers

### Is there a way to do on-chip debugging for MicroPython in Visual Studio?

Yes, a MicroPython VS Code extension from ghi-electronics enables full on-chip source-code debugging, including breakpoints and variable inspection, using the same USB cable already used for programming. It requires a supported host such as certain Raspberry Pi Pico versions or ESP32 chips, and either a custom-built MicroPython firmware image or one of the images the project provides.

_Developers wiring up embedded debugging workflows can track MicroPython tooling changes like this on daily.dev._

### What are the limitations of the ghi-electronics MicroPython debugger extension?

Breakpoints halt all threads rather than a single one, and exceptions already caught by the code cannot be intercepted by the debugger, though a breakpoint can still be set inside the exception handler itself. There are also known firmware setup issues on some boards, including an RP2040 GEEK variant and a documented problem affecting Linux hosts with the ESP32-S3.

_Anyone evaluating embedded debugging tools can weigh trade-offs like these before adopting one, tracked on daily.dev._

## Similar posts on daily.dev

- [I flashed MicroPython onto a $4 board, and it's the easiest way into electronics I've found](https://daily.dev/posts/i-flashed-micropython-onto-a-4-board-and-it-s-the-easiest-way-into-electronics-i-ve-found-s1dfmmk5x) · XDA Developers · 0 upvotes · 0 comments
- [ESP32 Bit Pirate: Bridging Modern Microcontrollers and Browser-Based Hardware Debugging](https://daily.dev/posts/esp32-bit-pirate-bridging-modern-microcontrollers-and-browser-based-hardware-debugging-i9coyxqm3) · InfoQ · 0 upvotes · 0 comments
- [The Whole Computer Is Vim](https://daily.dev/posts/the-whole-computer-is-vim-t9r5ryzgi) · Hackaday · 1 upvotes · 0 comments
- [Espressif Systems releases a Linux BSP developer preview for ESP32-S31 RISC-V microprocessor](https://daily.dev/posts/espressif-systems-releases-a-linux-bsp-developer-preview-for-esp32-s31-risc-v-microprocessor-lmglqymci) · CNX Software · 1 upvotes · 0 comments
- [CircuitPython 10.2.0-rc.0 Released\!](https://daily.dev/posts/circuitpython-10-2-0-rc-0-released--i8i8r0m2n) · Adafruit Blog · 0 upvotes · 0 comments

---

Tags: [#iot](https://daily.dev/tags/iot), [#micropython](https://daily.dev/tags/micropython), [#raspberry-pi](https://daily.dev/tags/raspberry-pi), [#vscode](https://daily.dev/tags/vscode)

[View this post on daily.dev](https://daily.dev/posts/on-chip-debug-for-some-micropython-qdnlutrn0)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"On Chip Debug For (Some) MicroPython","url":"https://daily.dev/posts/on-chip-debug-for-some-micropython-qdnlutrn0","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/on-chip-debug-for-some-micropython-qdnlutrn0"},"datePublished":"2026-09-19T02:18:44.447Z","dateModified":"2026-10-15T02:22:31.311Z","description":"A new open-source extension from ghi-electronics brings full on-chip source-code debugging for MicroPython into Visual Studio, letting developers set...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/41c13c97a87df76690f8e0ebcd02c608?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/41c13c97a87df76690f8e0ebcd02c608?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hackaday","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hackaday","logo":"https://media.daily.dev/image/upload/s--JhDfhy70--/f_auto,q_auto/v1767541814/logos/hackaday","url":"https://daily.dev/sources/hackaday"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/on-chip-debug-for-some-micropython-qdnlutrn0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"iot,micropython,raspberry-pi,vscode","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hackaday","item":"https://daily.dev/sources/hackaday"},{"@type":"ListItem","position":3,"name":"On Chip Debug For (Some) MicroPython"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/on-chip-debug-for-some-micropython-qdnlutrn0#faq","mainEntity":[{"@type":"Question","name":"Is there a way to do on-chip debugging for MicroPython in Visual Studio?","acceptedAnswer":{"@type":"Answer","text":"Yes, a MicroPython VS Code extension from ghi-electronics enables full on-chip source-code debugging, including breakpoints and variable inspection, using the same USB cable already used for programming. It requires a supported host such as certain Raspberry Pi Pico versions or ESP32 chips, and either a custom-built MicroPython firmware image or one of the images the project provides. Developers wiring up embedded debugging workflows can track MicroPython tooling changes like this on daily.dev."}},{"@type":"Question","name":"What are the limitations of the ghi-electronics MicroPython debugger extension?","acceptedAnswer":{"@type":"Answer","text":"Breakpoints halt all threads rather than a single one, and exceptions already caught by the code cannot be intercepted by the debugger, though a breakpoint can still be set inside the exception handler itself. There are also known firmware setup issues on some boards, including an RP2040 GEEK variant and a documented problem affecting Linux hosts with the ESP32-S3. Anyone evaluating embedded debugging tools can weigh trade-offs like these before adopting one, tracked on daily.dev."}}]}
```

