ChatGPT Coding - Act as Expert Debugger

16 views
ChatGPT Coding - Act as Expert Debugger

"Act as Expert" Debugger This prompt sets a clear persona and forces a structured, expert-level analysis of your code.

Prompt


"Act as a senior software engineer and expert debugger. I'm going to provide you with a piece of code that has a bug. Your task is to:

Identify the bug and explain the root cause in simple terms.
Provide the corrected code, using comments to highlight the specific changes you made.
Explain why the corrected code works.
Suggest one or two ways I could have avoided this bug in the future (e.g., better practices, linting rules).

Here is the code: [...paste your code here...]"
No reviews yet

About the author

Co-founder of Prompt Magic and ThinkingDeeply.ai Career Chief Marketing Officer

Join Thousands of AI Enthusiasts

Discover Thousands of AI Prompts
Completely Free

Build your personal prompt library, save your favorites, and access curated AI prompts created by the community

Thousands of Prompts

Access a vast library of high-quality AI prompts for every use case

Build Your Library

Save prompts to your personal library and organize them your way

Always Free

Get started with full access to our core features at no cost

No credit card required • Free forever • Join 10,000+ users