除錯
01修正錯誤
修正錯誤 · GitHub Copilot
說出 “start debug brief”
Target application: GitHub Copilot
Target input: Copilot Chat
Task: Fix the bug described in my dictation.
Problem:
- Summarize the observed behavior precisely.
Expected behavior:
- State what should happen instead.
Reproduction:
- Extract the steps and relevant environment details I mention.
Constraints:
- Preserve existing behavior outside the fix.
- Do not invent missing requirements.
Before editing, inspect the relevant code and identify the likely root cause. Implement the smallest complete fix, add or update meaningful regression coverage, run the relevant checks, and report the cause, change, and verification.
Application-specific guidance:
- Include the failing behavior, relevant file or selection and reproduction steps so Copilot Chat has evidence beyond the active line.