python-debugpy

Debug Python execution failures with pdb and debugpy workflows.

Updated May 9, 2026
One-click install
npx skills add https://github.com/pmcdowall/hermes-skills --skill python-debugpy-pmcdowall
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/pmcdowall/hermes-skills/tree/main/software-development/python-debugpy
Command: npx skills add https://github.com/pmcdowall/hermes-skills --skill python-debugpy-pmcdowall

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers diagnose Python bugs by providing practical workflows for interactive debugging, remote inspection, and post-mortem analysis when tracebacks and logs are insufficient.

Core Features & Use Cases

  • Interactive Debugging: Use pdb breakpoints, stepping, stack inspection, expression evaluation, and post-mortem debugging to investigate runtime behavior.
  • Remote Debugging: Configure debugpy for DAP-based attachment to running processes, long-lived services, subprocesses, and IDE clients.
  • Use Case: Debug a failing test, inspect a misbehaving daemon, or trace a complex Python state issue by selecting the appropriate debugger workflow.

Quick Start

Use the python-debugpy skill to help me inspect a failing Python program and identify the source of the bug.

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 failing Python test using pdb breakpoints?▼

Debug failing Python tests by inserting pdb breakpoints to step through execution, inspect stack frames, and evaluate expressions at runtime to identify the exact failure point.

Can I attach debugpy to a running Python service for remote debugging?▼

Yes, you can configure debugpy for DAP-based attachment to inspect long-running Python services and subprocesses remotely without restarting the process.

What's the best way to investigate a Python crash when tracebacks are insufficient?▼

Use post-mortem debugging to inspect the runtime state and stack of a Python process immediately after an exception occurs, revealing variables and context that standard tracebacks omit.

Does this Python debugging workflow support subprocess debugging?▼

Yes, the debugpy workflows support subprocess debugging, allowing you to trace program behavior and inspect runtime state across multiple spawned Python processes.

When should I use debugpy instead of pdb for Python debugging?▼

Use debugpy for remote DAP attachment to long-running services or IDE clients, whereas pdb is suited for local interactive debugging with direct breakpoint insertion and stepping.

How do I inspect Python stack frames during post-mortem analysis?▼

During post-mortem analysis, inspect Python stack frames by dropping into an interactive debugger at the exception site to evaluate variables and trace the exact execution path.