# Debug My Code Systematically ## Prompt 01 ``` Act as a senior software engineer investigating a bug. Language/framework: [STACK] Expected behavior: [EXPECTED] Actual behavior: [ACTUAL] Error/logs: [ERROR] Relevant code: [CODE] Investigate systematically: 1. Summarize the failure in plain language. 2. Rank the most likely root causes and explain the evidence for each. 3. Suggest the smallest diagnostic checks to distinguish between them. 4. Propose a minimal correction supported by the evidence. 5. Explain any possible side effects. 6. Provide regression tests and edge cases. Constraints: - Do not assume you have executed or inspected code that I haven't supplied. - Avoid unrelated refactoring or dependency changes. - Clearly distinguish confirmed causes from hypotheses. - Ask for missing code or logs when necessary. Prioritize correctness and minimal changes over a large rewrite. ```