python-debugpy

Debug Python code locally and remotely using pdb and debugpy.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill unit helps developers debug Python code efficiently using pdb and debugpy, allowing for both local and remote debugging scenarios.

Core Features & Use Cases

  • pdb and debugpy Support: Offers a guide on using both pdb and debugpy for debugging Python code.
  • Local and Remote Debugging: Provides instructions for debugging code locally and remotely.
  • Use Case: When you encounter a bug in a long-running process like the Hermes gateway or a subprocess, this skill unit guides you on how to set up and use remote debugging with debugpy.

Quick Start

Run the script with python -m pdb -c continue script.py to start debugging.

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?

Remote debugging for long-running Python processes is achieved using debugpy to attach an external debugger to the active execution environment. This skill provides recipes to configure and connect to the running process.

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

Python debugging with pdb offers built-in local execution control, while debugpy enables advanced remote debugging scenarios for long-running processes. This skill provides instructions for utilizing both methods.

Can I use breakpoint() for local Python debugging?

Local Python debugging is supported via the breakpoint() function to invoke pdb or debugpy. This skill details how to configure local execution inspection using Python 3.6+ and the debugpy library.

How do I start debugging a Python script from the command line?

Start debugging a Python script by running the command `python -m pdb -c continue script.py` in your terminal. This initiates the pdb debugger to inspect execution flow immediately.

Do I need the debugpy library to debug Python subprocesses?

Yes, the debugpy library is required to debug Python subprocesses and long-running processes like the Hermes gateway. This skill guides you through setting up remote debugging for these environments.

When should I use remote debugging instead of local debugging in Python?

Remote debugging is necessary when troubleshooting bugs in long-running processes or subprocesses that cannot be easily restarted. This skill provides debugpy instructions for these complex execution scenarios.