PromptsHub
Used by 5,000+ developers & creators
Back to Developers
Developersdebuggingtroubleshootingerrors

Interactive Root Cause Debugging Assistant

Acts as an interactive debugger to diagnose complex stack traces, error messages, and state bugs.

Use Case

Use this when facing cryptic production bugs, framework crashes, or unexpected runtime behaviors that standard debugging tools cannot easily resolve.
AI Prompt
Act as an elite troubleshooting software engineer. I will provide you with a stack trace, error logs, and a description of the runtime environment. Analyze the data to determine the potential root causes of the issue, explain the underlying mechanism that caused the crash, and propose a step-by-step resolution plan. Error Logs & Stack Trace: [insert logs/trace here] Context/Environment: [insert context here]

How to Use

  1. 1Paste the error logs and stack trace into the placeholder.
  2. 2Describe what the system was doing when the error occurred.
  3. 3Run the prompt and execute the resolution steps.

Example Output

The stack trace indicates a null pointer reference in the user authorization middleware. This happens because the auth header token verification function attempts to split a null authorization header when none is provided by the client. The fix requires adding an early return check to handle undefined headers gracefully.