python-debugpy

Debug Python applications via pdb and remote debugpy attachment.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires debugpy, remote-pdb.

What problem does it solve?

This skill resolves complex bugs in Python applications by providing a structured approach to interactive debugging, remote inspection, and post-mortem analysis.

Core Features & Use Cases

  • Interactive Debugging: Use breakpoint() for local, real-time inspection of variables and execution flow.
  • Remote/Headless Debugging: Utilize debugpy to attach to long-running processes or remote environments via the Debug Adapter Protocol (DAP).
  • Post-Mortem Analysis: Inspect the state of an application at the exact moment an exception occurs to identify root causes.

Quick Start

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

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 daemon remotely?

To debug a long-running Python daemon remotely, use debugpy to attach to the active process via the Debug Adapter Protocol. This facilitates remote inspection of variables and execution flow without restarting the application.

What is the best way to inspect Python variables when an exception occurs?

The best way to inspect Python variables when an exception occurs is post-mortem analysis. This technique examines the application state at the exact moment of failure to identify the root cause of runtime errors.

Can I set breakpoints in Python subprocesses using pdb?

Yes, you can set breakpoints in Python subprocesses. The skill provides comprehensive debugging capabilities that facilitate troubleshooting for complex subprocesses across various execution environments using pdb.

Does python-debugpy support local interactive debugging for scripts?

Yes, python-debugpy supports local interactive debugging for scripts. You can use the breakpoint() function for real-time inspection of variables and precise control over execution flow in your local environment.

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

The difference between pdb and debugpy lies in their scope: pdb is used for local interactive debugging via breakpoints, while debugpy enables remote attachment to long-running processes using the Debug Adapter Protocol.

Why do I need remote-pdb to troubleshoot Python applications?

You need remote-pdb to troubleshoot Python applications running in headless or remote environments where local terminal access is unavailable. It enables remote attachment to inspect stack traces and resolve runtime errors efficiently.