python-debugpy

Debug Python runtime failures using pdb, debugpy, and DAP workflows.

Updated Jun 25, 2026
One-click install
npx skills add https://github.com/davpatel605-beep/hermusagent --skill python-debugpy-davpatel605-beep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/davpatel605-beep/hermusagent/tree/main/backend/vendor/hermes/skills/software-development/python-debugpy
Command: npx skills add https://github.com/davpatel605-beep/hermusagent --skill python-debugpy-davpatel605-beep

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers diagnose Python failures, inspect runtime state, and debug difficult issues in local, remote, and long-running processes.

Core Features & Use Cases

  • Interactive Python Debugging: Guides the use of pdb, breakpoint(), and post-mortem debugging to inspect code execution and variables.
  • Remote Debugging Workflows: Explains debugpy and DAP-based attachment patterns for services, daemons, and headless processes.
  • Use Case: Debug a failing test, investigate a stuck Hermes subprocess, or attach to a running Python service to inspect live execution state.

Quick Start

Use the python-debugpy skill to help me debug a Python process that is failing and identify the root cause using the appropriate debugging workflow.

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 Python process that is failing or stuck in a subprocess?

Debug a failing Python process by using interactive pdb commands or attaching debugpy to inspect live execution state. This Skill guides you through setting breakpoints and tracing code behavior to identify the root cause of subprocess or daemon failures.

What is the best way to attach a debugger to a long-running Python service?

Attaching a debugger to a long-running Python service requires remote debugging with debugpy and DAP workflows. This approach lets you connect to headless processes and inspect variables without restarting the service or interrupting its execution flow.

How does post-mortem debugging work for Python exceptions?

Post-mortem debugging in Python activates pdb after an exception crashes the process, allowing you to inspect the execution state and variables at the exact point of failure. This Skill explains how to trigger post-mortem analysis to trace code behavior reliably.

Can I use DAP breakpoints with Python tests that are failing?

Yes, you can use DAP breakpoints with Python tests by configuring debugpy to attach to the test runner process. This Skill provides workflows for inspecting failing tests and tracing code behavior through interactive and remote debugging environments.

Do I need to know pdb commands to use this Python debugging workflow?

Knowledge of pdb, debugpy, and DAP workflows is required to use this Python debugging workflow effectively. The Skill guides breakpoint usage and environment considerations but expects familiarity with these debugging tools for reliable runtime diagnosis.