# Debugging

> Python debugging techniques, pdb, and IDE debugging tools

- Skill: `pluginagentmarketplace-custom-plugin-python/debugging` (Agent Skill, multi-file: 6 files)
- Install (CLI): `npx skillmds add pluginagentmarketplace-custom-plugin-python/debugging`
- Raw SKILL.md: https://api.skillmd.com/api/skills/pluginagentmarketplace-custom-plugin-python/debugging/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: pluginagentmarketplace (https://skillmd.com/u/pluginagentmarketplace-custom-plugin-python)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/pluginagentmarketplace-custom-plugin-python/debugging

---


# Python Debugging Skill

## Overview
Master Python debugging using pdb, IDE debuggers, and advanced troubleshooting techniques.

## Topics Covered

### pdb Debugger
- Basic pdb commands
- Breakpoint() function
- Post-mortem debugging
- Remote debugging
- pdb++ enhancements

### IDE Debugging
- VS Code debugger
- PyCharm debugging
- Breakpoint conditions
- Watch expressions
- Call stack navigation

### Logging
- logging module setup
- Log levels and handlers
- Structured logging
- Log aggregation
- Debug logging strategies

### Profiling
- cProfile usage
- line_profiler
- memory_profiler
- py-spy for production
- Flame graphs

### Error Analysis
- Traceback analysis
- Exception chaining
- Context managers for debugging
- Sentry integration
- Error monitoring

## Prerequisites
- Python fundamentals
- Exception handling

## Learning Outcomes
- Debug effectively with pdb
- Profile performance issues
- Set up proper logging
- Analyze production errors

