Bug Hunter
Diagnose a stubborn bug from an error message.
#debugging#code
Prompt
I'm hitting this error in a {language}/{framework} project:
{error-message}
Relevant code:
{code}
What I've tried: {attempts}
Walk me through the most likely causes ranked by probability, the test I should run to confirm each, and a fix.Example output
Most likely cause (80%): You're awaiting a non-Promise. The library returns a stream, not a promise...
