python-debugpy

Debug Python applications interactively and remotely with pdb and debugpy.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pdb, debugpy, and includes scripts (resource) components.

What problem does it solve?

This Skill helps users debug Python applications using pdb and debugpy, enabling effective code inspection and issue resolution.

Core Features & Use Cases

  • Interactive Debugging: Provides a local, interactive debugging environment with pdb.
  • Remote Debugging: Offers remote debugging capabilities for long-running processes.
  • Post-mortem Analysis: Allows inspection of the state of a Python process at the point of failure.
  • Use Case: When encountering a crash in a production Python application, this Skill can be used to analyze the state of the process and identify the root cause.

Quick Start

To debug a Python script named 'example.py', add a breakpoint and run the script. When the breakpoint is hit, interact with the debugger to inspect variables and step through the code.

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 application crash in production?

To debug a Python application crash in production, use post-mortem analysis to inspect the process state at the point of failure and identify the root cause. This allows interactive examination of variables when the crash occurs.

What is the best way to set up remote debugging for long-running Python processes?

Remote debugging for long-running Python processes uses debugpy to attach to the running application. This enables step-by-step code execution and variable inspection without restarting the process.

Can I use pdb for interactive debugging in a local Python environment?

Yes, pdb provides a local interactive debugging environment for Python programs. You can add breakpoints to pause execution, inspect variables, and step through code line by line.

Do I need to install pdb and debugpy libraries to debug Python code at runtime?

Yes, the pdb and debugpy libraries are required dependencies for debugging Python code at runtime. These libraries enable interactive, remote, and post-mortem analysis capabilities.

How does post-mortem analysis work for Python applications?

Post-mortem analysis works by inspecting the state of a Python process at the exact point of failure. It allows developers to interact with the debugger to examine variables and trace the root cause of crashes.