python-debugpy

Integrate pdb and debugpy for local, remote, and post-mortem Python debugging.

7|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/kzinmr/ai-topics --skill python-debugpy-kzinmr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/kzinmr/ai-topics/tree/main/config/hermes/skills/_overrides/python-debugpy
Command: npx skills add https://github.com/kzinmr/ai-topics --skill python-debugpy-kzinmr

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the debugging process in Python by integrating popular debugging tools like pdb and debugpy, providing users with powerful features to diagnose issues efficiently.

Core Features & Use Cases

  • Interactive Debugging: Utilize pdb for local and interactive debugging sessions, allowing step-by-step execution and inspection of variables.
  • Remote Debugging: Employ debugpy for attaching to remote processes, enabling debugging of long-running tasks or gateways.
  • Use Case: If you have a misbehaving Hermes gateway or need to investigate an exception that occurred in a production environment, this Skill offers the tools to get to the root cause quickly.

Quick Start

Use the python-debugpy skill to start a debug session for a running Hermes gateway with 'hermes --debug' and attach to it using 'debugpy --listen' with the gateway's PID.

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 Hermes gateway process in Python?

Debug a running Hermes gateway process by launching it with the '--debug' flag, then attaching to its PID using 'debugpy --listen' for a remote debugging session to inspect the execution state.

Can I use pdb for interactive step-by-step debugging of a Python application?

Yes, you can use pdb for interactive local debugging sessions, allowing you to execute code step-by-step and inspect variables to diagnose issues efficiently.

What is the best way to analyze a Python exception that occurred in a production environment?

Analyzing a production Python exception is best handled through post-mortem debugging, which allows you to inspect the stack trace and execution state immediately after a failure to find the root cause.

Does this Python debugging approach support remote debugging for long-running tasks?

Yes, remote debugging is supported via debugpy, enabling you to attach to and debug long-running tasks or gateways without interrupting the application's execution.

Do I need specific Python libraries to use DAP for debugging?

Yes, you need to have Python installed along with the pdb and debugpy libraries, which are required to analyze stack traces and execute DAP (Debug Adapter Protocol) sessions.

What is the difference between using pdb and debugpy for Python debugging?

Pdb is utilized for local interactive debugging with step-by-step execution, whereas debugpy is employed to attach to remote processes via DAP, enabling debugging of long-running or production tasks.