Python 断点调试
原名:python-debugpy
使用 pdb 和 debugpy 调试 Python 进程、异常、断点与变量。
中文 Skills 技能说明
适合普通脚本、后端服务和复杂 Python 运行问题。技能先用本地调试器复现,再按需启用远程 DAP;远程监听不能暴露到公网,调试输出也不能泄露密钥和个人信息。
上游能力依据
上游原始适用说明:Debug Python: pdb REPL + debugpy remote (DAP).
上游 SKILL.md 主要章节(保留原文标题):
- Overview
- When to Use
- pdb Quick Reference
- Recipe 1: Local breakpoint
- Recipe 2: Launch a script under pdb (no source edits)
- Recipe 3: Debug a pytest test
- Recipe 4: Post-mortem on any exception
- Recipe 5: Remote debug with debugpy (attach to running process)
- Setup
- Pattern A: Source-edit — process waits for debugger at launch
使用边界
先读取项目约定、依赖版本和现有测试,再提出最小改动。写文件、运行脚本、提交代码或发布前应检查差异并保留回退路径。
作者、翻译与许可证
- 原作者
- Hermes Agent
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://hermes-agent.nousresearch.com/docs/zh-Hans/user-guide/skills/bundled/software-development/software-development-python-debugpy
适用范围
平台:linux、macos;标签:debugging、python、pdb、debugpy、breakpoints、dap、post-mortem
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。