python-debugpy

Debug Python code locally with pdb and remotely via debugpy using DAP.

1|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/Monjyu1101/AiDiy2026 --skill python-debugpy-monjyu1101
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/Monjyu1101/AiDiy2026/tree/main/backend_hermes/skills/software-development/python-debugpy
Command: npx skills add https://github.com/Monjyu1101/AiDiy2026 --skill python-debugpy-monjyu1101

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python debugging is often split between local interactive sessions with pdb and remote, headless debugging with debugpy. This guide consolidates best practices and workflows to leverage pdb REPL and debugpy remote (DAP) for efficient investigation across development and Hermes runtime environments.

Core Features & Use Cases

  • Local pdb-based debugging to inspect variables, set breakpoints, and step through code interactively.
  • Remote debugging with debugpy to attach to a running Python process or start a script with debugging enabled.
  • Use cases include debugging Hermes gateway components, long-running services, and post-mortem inspection after crashes.

Quick Start

Attach debugpy to a running process or start a script with debugging enabled to begin interactive investigation.

Frequently Asked Questions about python-debugpy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a running Python process remotely?▼

Remote Python debugging uses debugpy to attach to a running process via the DAP protocol. You can set breakpoints and inspect locals without restarting the service.

What is the best way to inspect variables locally in Python?▼

Local Python inspection uses pdb to set breakpoints and step through code interactively. The REPL allows real-time evaluation of variables during execution.

Can I use debugpy for post-mortem debugging after a crash?▼

Post-mortem debugging with debugpy supports inspecting production-like environments after crashes. It enables safe, configurable investigation of the application state.

Does this debugging workflow support long-running Hermes processes?▼

Debugging supports long-running Hermes processes using debugpy remote attachment. This allows investigation of gateway components without interrupting the service lifecycle.

How do I start a Python script with debugging enabled?▼

Starting a Python script with debugging enabled uses debugpy to launch the process with the DAP protocol active. This allows immediate attachment for interactive investigation.