← 教程列表
news

Layer 4: Debug Instrumentation

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

**Purpose:** Capture context for forensics ```typescript async function gitInit(directory: string) { const stack = new Error().stack; logger.debug('About to git init', { directory, cwd: process.cwd(), stack, }); // ... proceed } ```

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