检查1Password命令行工具的安装和认证,将已保存的密码或API密钥传入命令及配置。支持桌面应用集成、服务账号和交互式登录,并先验证访问权限。
- 安装1Password命令行工具
- 将API密钥传入命令
- 在CI中使用服务账号认证
通过暂停Python执行、检查变量和跟踪代码流程来查找故障原因。可查看异常发生时的状态,也可连接正在运行的进程,调查测试失败或服务中的问题。
Debug Python with pdb, breakpoint(), post-mortem inspection, and debugpy remote attach.
暂停Python程序的执行,通过检查变量值和代码流程查找故障原因。可根据情况选择写入代码的breakpoint()、启动程序时使用的pdb,或从外部连接正在运行程序的debugpy。还可查看异常发生时的状态,或设置条件,让程序仅在满足条件时暂停。
适合调查原因不明的测试失败,或查找变量在何处发生了意外变化。也可用于检查长期运行的服务,以及没有图形界面的环境中的进程。
pdb检查变量。”debugpy连接正在运行的服务,检查执行停在了哪里。”需要python3,并在当前使用的环境中安装debugpy。连接地址原则上限制为127.0.0.1,连接运行中的进程前应确认目标PID。使用pdb调查时,应关闭测试的并行执行。调查结束后,移除调试代码,并重新运行常规测试。
本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。
AI 仅根据 SKILL.md 的内容,从 4 个方面进行了评估。星标数和热度不计入评估。
总分按每项 A=25 分、B=15 分、C=5 分相加。 由 AI(OpenAI Codex)于 2026年10月19日 评估。仅供参考,安装前请同时查看原文。
安装前可以查看交给 AI 代理的指令内容。
Use when Python code needs interactive debugging: hidden locals, confusing state mutation, failing tests, subprocesses, long-running services, or remote/headless attach.
Pick the smallest debugger that reaches the bad frame.
breakpoint(): local code, source edits ok, fastest path.python3 -m pdb: no source edit, launch from the beginning.python3 -m pdb -c continue: stop at an unhandled exception.debugpy: remote/headless process, DAP client, already-running PID, or service startup race.python3 -m pdb path/to/script.py arg1
python3 -m pdb -c continue path/to/script.py
python3 -c "import debugpy" || python3 -m pip install debugpy
python3 -m debugpy --listen 127.0.0.1:5678 --wait-for-client path/to/script.py
python3 -m debugpy --listen 127.0.0.1:5678 --wait-for-client -m package.module
python3 -m debugpy --listen 127.0.0.1:5678 --pid <pid>
For source-edit attach:
import debugpy
debugpy.listen(("127.0.0.1", 5678))
debugpy.wait_for_client()
debugpy.breakpoint()
For post-mortem:
import pdb, sys
try:
run()
except Exception:
pdb.post_mortem(sys.exc_info()[2])
raise
n, s, r, c, q.w, u, d, a, l, ll.p expr, pp expr, display expr.b file.py:42, b func, b file.py:42, condition, cl <num>.!statement; full REPL: interact.debugpy in the active env; do not add it as a project dependency unless the project already wants it.127.0.0.1; do not expose 0.0.0.0 unless isolated or tunnelled.debugpy --pid injects into a running process; confirm the target pid before attaching.rg -n 'breakpoint\\(|pdb\\.set_trace|debugpy\\.' --type py.PYTHONBREAKPOINT=0 disables breakpoint().还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
检查1Password命令行工具的安装和认证,将已保存的密码或API密钥传入命令及配置。支持桌面应用集成、服务账号和交互式登录,并先验证访问权限。
将提交给OpenClaw的自然语言请求转交给Claude Code等外部编程智能体,通过ACP或acpx启动、继续会话,并保留对话上下文。
为OpenClaw添加模型服务商,并通过实际回复验证连接。凭据以环境变量或文件引用的形式配置,同时验证设置并报告测试结果。
将AI代理的工作日志整理为可附在GitHub拉取请求或议题中的记录,筛选相关内容、移除敏感信息,并支持预览及经单独授权后的发布。
通过代理管理macOS上的Apple Notes笔记,支持创建、查看、搜索、编辑和删除,在文件夹之间移动笔记,并将选定笔记导出为HTML或Markdown。
通过Mac查看、添加和编辑Apple Reminders中带截止时间的待办事项,管理列表并完成或删除任务,整理在iPhone或iPad上查看的个人任务。