python-debugpy

Provides interactive and remote debugging for Python applications via pdb and debugpy.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the need for efficient and flexible debugging in Python applications, enabling developers to identify and resolve issues more quickly.

Core Features & Use Cases

  • Interactive Debugging: Offers interactive debugging with pdb and remote debugging with debugpy.
  • Breakpoints and Step-by-Step Execution: Provides functionality to set breakpoints and step through code line by line.
  • Post-Mortem Analysis: Allows analysis of exceptions after the fact, making it easier to debug unexpected errors.
  • Use Case: If you encounter a bug in a Python application, you can use this Skill to set a breakpoint at the problematic line, step through the code, and inspect variables to identify the issue.

Quick Start

To debug a script named 'my_script.py', simply add a breakpoint and run the script using python -m debugpy --listen 127.0.0.1:5678 --wait-for-client my_script.py

Frequently Asked Questions about python-debugpy

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

FAQPage Schema
How do I set breakpoints and step through Python code to inspect variables?

To debug Python applications, you can set breakpoints and step through code line by line using pdb and debugpy. This allows you to inspect variables during runtime to identify issues efficiently.

What is the best way to debug a Python script remotely?

Remote debugging for a Python script is handled by debugpy. You run your script using `python -m debugpy --listen 127.0.0.1:5678 --wait-for-client my_script.py` to attach a remote debugger.

Can I perform post-mortem analysis on a Python application after an exception?

Post-mortem analysis is supported for Python applications. It allows you to analyze exceptions after the fact, making it easier to debug unexpected errors without needing to reproduce them live.

Do I need pdb and debugpy installed to debug long-running Python processes?

Yes, you need both pdb and debugpy installed to function. These dependencies provide the interactive and remote debugging capabilities required to inspect long-running Python processes during runtime.

How does interactive debugging with pdb work for Python applications?

Interactive debugging with pdb allows developers to pause Python application execution, set breakpoints, and inspect variables directly in the console. It facilitates stepping through code to resolve issues quickly.