python-debugpy

Launch pdb sessions and attach debugpy for local and remote Python debugging.

1|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/ChangZhou-xj/zxj_skill --skill python-debugpy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-debugpy
Source: https://github.com/ChangZhou-xj/zxj_skill/tree/main/software-development/python-debugpy
Command: npx skills add https://github.com/ChangZhou-xj/zxj_skill --skill python-debugpy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debugging Python code can be challenging when issues occur across local and remote environments. This Skill provides a structured approach to debugging with pdb for local workflows and debugpy for remote/attach scenarios, enabling faster diagnosis and fixes.

Core Features & Use Cases

  • Local interactive debugging using pdb (breakpoints, variables, stepping) on the fly.
  • Remote debugging via debugpy to attach from IDEs or CLIs to long-running processes.
  • Post-mortem debugging and wait-for-client workflows to diagnose crashes in production-like contexts.

Quick Start

Attach a debugger to a Python process using debugpy or start a local pdb session to inspect code.

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?

To attach a debugger to a running Python process, you can use debugpy to connect from an IDE or CLI to long-running services for remote debugging. This allows you to diagnose issues without restarting the application.

What is the best way to debug Python code locally on the fly?

The best way to debug Python code locally on the fly is by using pdb to start an interactive session. You can set breakpoints, inspect variables, and step through code to quickly diagnose and fix issues.

Can I use debugpy for post-mortem debugging in production-like environments?

Yes, you can use debugpy for post-mortem debugging in production-like environments. It supports diagnosing crashes and coordinating wait-for-client workflows to inspect the program state after a failure.

Does this remote debugging approach work with long-running services?

Yes, this remote debugging approach works with long-running services. By using debugpy, you can attach an IDE or CLI debugger to an active process to inspect and troubleshoot code without interrupting the service lifecycle.

How do I start a pdb session to inspect Python code?

To start a pdb session to inspect Python code, you launch pdb locally to apply ad-hoc script debugging. This enables interactive breakpoints, variable inspection, and stepping through execution.