Debug with Copilot Chat

Developer Toolscopilot-promptsfilePathlineNumbererrorMessage

Giving Copilot the exact error, file reference, caller context, and what changed recently narrows the search space dramatically. Asking for ranked causes prevents the model from fixating on the first plausible explanation.

Prompt
I'm getting this error in #file:{{filePath}} at line {{lineNumber}}:

\`\`\`
{{errorMessage}}
\`\`\`

Context:
- This function is called by {{callerDescription}}
- The input data comes from {{dataSource}}
- It worked before {{whatChanged}}

Diagnose the root cause. Explain why it's happening, then provide a fix. If there are multiple possible causes, list them ranked by likelihood.

Variables to customize

{{filePath}}{{lineNumber}}{{errorMessage}}{{callerDescription}}{{dataSource}}{{whatChanged}}

Why this prompt works

Giving Copilot the exact error, file reference, caller context, and what changed recently narrows the search space dramatically. Asking for ranked causes prevents the model from fixating on the first plausible explanation.

What you get when you save this prompt

Your workspace unlocks powerful tools to iterate and improve.

AI OPTIMIZE

AI Optimization

One-click improvement with structure analysis and pattern suggestions.

VERSION DIFF

Version History

Track every edit. Compare versions side-by-side with word-level diffs.

ORGANIZE
Development
Code Review
Testing
Marketing

Folders & Tags

Organize your library with nested folders, tags, and drag-and-drop.

MCP
$ npm i -g @promptingbox/mcp
Claude · Cursor · ChatGPT

Use Everywhere

Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.

Your prompts, organized

Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.