← 教程列表
image-edit

Stack Trace Tips

📅 2026/6/12 16:30:02⏱ 约 5 分钟阅读👁 8 阅读

**In tests:** Use `console.error()` not logger - logger may be suppressed **Before operation:** Log before the dangerous operation, not after it fails **Include context:** Directory, cwd, environment variables, timestamps **Capture stack:** `new Error().stack` shows complete call chain

← 返回教程列表 AI8899 · 内容仅供学习参考