Workflows
Debug from logs
Paste an error or log output and let Claude diagnose it.
Goal
Understand the root cause of an error faster than reading docs.
Outcome: A clear explanation of the error and targeted fix suggestions.
Debug
BasicSteps
1
Copy the error output
Get the full stack trace or log block — more context is better.
2
Ask Claude to diagnose
Paste the error and ask for a diagnosis.
claude "here is an error I am seeing — what is causing it and how do I fix it?
[paste error here]"3
Show the relevant file
Point Claude to the file where the error originates.
claude "look at src/auth/middleware.ts — does it explain this error?"4
Pipe logs directly
Pipe log output into Claude for immediate analysis.
npm run dev 2>&1 | claude -p "what is wrong with this output?"