一键导入
debugging-guide
How to debug issues in workstream. Use when investigating bugs or unexpected behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
How to debug issues in workstream. Use when investigating bugs or unexpected behavior.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Definition of done checklist for workstream PRs. Use when preparing a PR for review.
How to set up a local development environment for workstream. Use when onboarding or resetting your dev environment.
How to run end-to-end tests for workstream. Use when verifying the full dashboard flow.
How to run unit tests for workstream. Use when writing, modifying, or verifying tests before submitting a PR.
| name | debugging-guide |
| description | How to debug issues in workstream. Use when investigating bugs or unexpected behavior. |
Drop into a debugger at a specific point:
import pdb; pdb.set_trace() # or: breakpoint()
Run pytest with output visible:
pytest -s -v tests/test_config.py
Debug a specific test:
pytest --pdb tests/test_config.py::test_name
Workstream uses Python's logging module. Enable debug logging:
import logging
logging.basicConfig(level=logging.DEBUG)
Check the logger name pattern: dashboard.<module> (e.g., dashboard.readiness.scanner).
.env varslsof -ti tcp:8080)GITHUB_PAT is set in .env