Debug platformio

From LeoKemp223/embed-ai-tool · View interactive version

Debug platformio is an AI agent skill from the GitHub repository LeoKemp223/embed-ai-tool. 当需要通过 PlatformIO 内置调试功能对目标板进行 GDB 调试时使用,支持下载暂停、附加和崩溃现场分析。

How to use this skill

Skill file

PlatformIO 调试

适用场景

必要输入

自动探测

执行步骤

  1. 先阅读 references/usage.md,确认本次操作。
  2. 探测调试环境:

```bash

python scripts/pio_debugger.py --detect --project-dir <工程目录> --env <环境名>

```

  1. 执行调试:

```bash

python scripts/pio_debugger.py --project-dir <工程目录> --env <环境名> --mode download-and-halt

```

调试模式

失败分流

输出约定

示例输出格式:

调试完成 ✅
  工程: ESP32_DEV → 环境: esp32dev
  板卡: esp32dev | 调试工具: esp-prog
  模式: download-and-halt
  关键观察: 5 条(寄存器、回溯帧)

交接关系

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.