python-debugpy

Debug Python applications with pdb locally and debugpy for remote DAP attachment.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires debugpy, remote-pdb.

What problem does it solve?

This skill addresses the difficulty of diagnosing complex issues in Python applications, ranging from simple script errors to hard-to-reproduce bugs in long-running processes and subprocesses.

Core Features & Use Cases

  • Interactive Debugging: Utilize pdb for local, step-by-step code inspection and state mutation.
  • Remote/Headless Debugging: Use debugpy to attach to running processes, gateways, or daemons for remote inspection.
  • Post-Mortem Analysis: Capture and inspect the state of an application immediately after an unhandled exception occurs.

Quick Start

Use the python-debugpy skill to set a breakpoint in your code and initiate an interactive debugging session to inspect local variables.

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 long-running Python process remotely?

Debug a long-running Python process remotely using debugpy to attach to the active process, enabling remote socket communication for DAP-compliant inspection and state mutation.

What is the best way to inspect local variables during Python debugging?

Inspect local variables during Python debugging by setting a breakpoint with pdb, initiating an interactive session to pause execution and evaluate the application state step-by-step.

Can I debug Python subprocesses and asynchronous tasks?

Yes, you can debug Python subprocesses and asynchronous tasks through source-level instrumentation or process injection, allowing breakpoint trapping within complex execution flows.

How do I perform post-mortem analysis on an unhandled Python exception?

Perform post-mortem analysis on an unhandled Python exception by capturing the application state immediately after the failure, allowing you to inspect the context and variables that caused the crash.

Do I need remote-pdb to attach to headless Python applications?

You need remote-pdb and debugpy dependencies configured in your environment to enable remote socket communication and attach to headless or daemon Python applications for inspection.

Does this debugging approach support DAP-compliant editors?

Yes, debugpy provides DAP-compliant attachment, allowing compatible editors and gateways to connect to running Python processes for remote troubleshooting and breakpoint trapping.