Cryptic error messages frustrate for hours. AI explains error, identifies root cause, provides fixes.
The Prompt:
Debug this error: ERROR MESSAGE: [Paste full error message/stack trace] CODE CONTEXT: [Paste relevant code where error occurs] WHAT I WAS TRYING TO DO: [Describe what you were attempting] MY ENVIRONMENT: [Framework versions, OS, etc.] Provide: 1. Plain English explanation of what error means 2. Root cause (why it's happening) 3. 3 potential solutions (ranked by likelihood) 4. Code examples for each solution 5. How to prevent this in future 6. Related issues to watch for
Example Error:
“System.NullReferenceException: Object reference not set to an instance of an object”
AI Explains: Which object is null, why it’s null, exactly where to add null check, and better patterns to avoid this!
