AiPromptss
Back to browse

Bug Diagnosis Helper

Diagnose a bug from an error message, stack trace, or unexpected behavior.

Added May 11, 20260 views0 copies
Prompt
Act as a senior debugging expert.

Language / framework: [STACK]
What I expected to happen: [EXPECTED]
What actually happened: [ACTUAL]
Error message / stack trace:
"""
[PASTE_ERROR]
"""
Relevant code:
"""
[PASTE_CODE]
"""

Walk me through:
1. The most likely root cause (with reasoning)
2. 2-3 alternative possibilities ranked by likelihood
3. The exact diagnostic steps to confirm the cause (commands, log lines to add, etc.)
4. The recommended fix with code
5. How to prevent this class of bug in the future

Replace text in [BRACKETS] with your own values before pasting.