python-debugpy

Debugs Python programs via step-by-... sorry, let me just output the JSON.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you diagnose Python bugs by stepping through live execution, inspecting variables, and catching failures at the exact line where behavior goes wrong.

Core Features & Use Cases

It covers local pdb workflows, script launch debugging, pytest failure inspection, post-mortem crash analysis, and remote attach debugging with debugpy for long-running processes. It is especially useful when a test only fails under specific state, a service cannot be restarted easily, or a subprocess, thread, or async handler needs targeted inspection. It also provides practical guidance for common debugging pitfalls such as xdist, breakpoint suppression, missing attach connections, and child-process debugging.

Quick Start

Use this Skill to debug a Python program by choosing the simplest working option for your case, then step through the code until you identify the faulty state.

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 pytest failure by inspecting live variables at the exact failing line?

To debug pytest failures, you can use breakpoint-based inspection to step through live execution and catch failures at the exact line where behavior goes wrong. This allows you to inspect the specific state that caused the test to fail.

Can I attach a debugger to a long-running Python service without restarting it?

Yes, you can attach a debugger to a long-running Python service without restarting it using debugpy remote attachment. This allows targeted inspection of live processes, which is especially useful when a service cannot be easily restarted.

What is the best way to debug a Python subprocess or async handler that needs targeted inspection?

The best way to debug a Python subprocess or async handler is using breakpoint-based inspection and pdb command control. This Skill provides practical guidance for handling child processes, threads, and async handlers safely.

How do I perform post-mortem analysis on a Python crash to find the exact runtime state?

For post-mortem crash analysis, you can capture tracebacks and locate the exact runtime state behind the exception. This Skill helps diagnose crashes by inspecting the program state at the moment the failure occurred.

Does Python debugging work with pytest xdist and forked child processes?

Yes, Python debugging works with pytest xdist, threads, asyncio, and forked children. The Skill provides practical guidance for common pitfalls like breakpoint suppression, missing attach connections, and child-process debugging across these environments.

Why does my debugpy remote attach session fail to connect to my Python application?

Debugpy remote attach sessions can fail due to missing attach connections or configuration issues. This Skill provides practical guidance to resolve common debugging pitfalls like missing attach connections and breakpoint suppression safely.