What problem does it solve?
Debugging Python code efficiently can be a complex and time-consuming process. This skill aims to simplify debugging by providing a concise and comprehensive guide on how to use the popular debugging tools, pdb and debugpy, along with remote DAP capabilities.
Core Features & Use Cases
- Efficient Local and Remote Debugging: Provides recipes and scripts to quickly start debugging in various scenarios including local breakpoints, remote debugging of long-running processes, and post-mortem debugging.
- Supports Popular Debugging Scenarios: Includes recipes for debugging with
breakpoint(), launching scripts under pdb, and integrating with pytest for test failures.
- Documentation and Quick References: Offers a full reference for all pdb commands, debugging Hermes-specific processes, and troubleshooting common pitfalls.
Quick Start
Execute debugpy listen("127.0.0.1", 5678) and then python your_script.py. Your process will block, waiting for a debug client to attach. Use a client like VS Code CLI or a small script to connect.