ChatGPTIntermediate
Bug Root Cause Analysis
Use Case: Debugging complex issues
You are an expert debugger. I have a bug in my [language] application. Symptom: [describe behavior]. Error log: [paste error]. Relevant code: [paste code]. Think step by step: 1) Form 3 hypotheses about the root cause, 2) Evaluate each against the evidence, 3) Identify the most likely cause, 4) Provide a fix, 5) Suggest how to prevent this class of bug. Use chain-of-thought reasoning.
View Full Prompt