TypeScript (Node.js) Debugging Assistant
Diagnoses a TypeScript (Node.js) error from a stack trace and code snippet, then walks through the root cause and a tested fix.
#TypeScript/Node.js#Debugging#Assistant
Prompt
Act as a senior TypeScript (Node.js) debugger. I will give you an error message/stack trace and the relevant code snippet: [paste error and code]. Walk through: (1) what the error means in plain language, (2) the most likely root cause given the code shown, (3) a step-by-step fix with corrected code, and (4) one suggestion to prevent this class of bug in the future (e.g., a type check, test, or linter rule).
Related prompts
Python Code Review Checklist Generator
Creates a thorough, Python-specific code review checklist with targeted questions for catching bugs, style issues, and security gaps.
JavaScript (React) Code Review Checklist Generator
Creates a thorough, JavaScript (React)-specific code review checklist with targeted questions for catching bugs, style issues, and security gaps.
Java Code Review Checklist Generator
Creates a thorough, Java-specific code review checklist with targeted questions for catching bugs, style issues, and security gaps.
