python-debugpy

Debug Python applications with pdb, debugpy, and remote-pdb.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires debugpy, remote-pdb.

What problem does it solve?

This skill resolves complex software bugs by providing a comprehensive toolkit for interactive, remote, and post-mortem debugging of Python applications.

Core Features & Use Cases

  • Interactive Debugging: Use breakpoint() for local, real-time inspection of code execution and variable state.
  • Remote/Headless Debugging: Utilize debugpy to attach to long-running processes or remote services for production-grade troubleshooting.
  • Post-Mortem Analysis: Capture and inspect the state of an application at the exact moment an exception occurs.

Quick Start

Use the python-debugpy skill to attach a remote debugger to the running Hermes gateway process on port 5678.

Frequently Asked Questions about python-debugpy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I attach a debugger to a running Python process for remote debugging?

Remote debugging involves using debugpy to attach to long-running Python processes via a specified port, such as 5678. This allows you to troubleshoot remote services or headless applications interactively during execution.

What is post-mortem analysis in Python and how does it help with exceptions?

Post-mortem analysis in Python captures and inspects the exact application state at the moment an exception occurs. This technique helps developers identify the root cause of crashes by examining variable states and the call stack after failure.

Can I use pdb for real-time interactive inspection of Python code?

Yes, pdb facilitates local interactive inspection by utilizing the breakpoint() function. This allows developers to pause code execution locally and examine variable states in real-time to resolve complex software bugs.

Does this debugging approach support long-lived services or only local scripts?

This debugging approach supports both local scripts and long-lived services. You can use local interactive inspection for scripts and attach debugpy to remote processes for production-grade troubleshooting of long-running services.

What's the best way to debug a Python application running on a remote server?

The best way to debug a remote Python application is attaching debugpy to the running process over a network port. This remote process attachment facilitates troubleshooting long-running or headless services without interrupting execution flow.

Why do I need remote-pdb when debugging Python applications?

Remote-pdb is required when you need to interact with the debugger over a network connection for long-running or headless processes. It integrates with standard Python debugging protocols to enable remote process attachment and state inspection.