Senior-engineer root-cause debugging with tests
Shubham Singh @Shubhambais05In short: This prompt asks your AI to act as a senior debugging engineer. Fill in [PROJECT], [EXPECTED BEHAVIOR], [PROBLEM], [TRIGGER/CONDITION], [CODE] and 5 more.
Act as a senior debugging engineer. My project is [PROJECT], its intended behavior is [EXPECTED BEHAVIOR], but the current problem is [PROBLEM]. The issue happens when [TRIGGER/CONDITION], relevant code is [CODE], input is [INPUT], expected result is [EXPECTED RESULT], actual result is [ACTUAL RESULT], environment is [LANGUAGE/FRAMEWORK/VERSION], and errors/logs are [ERRORS/LOGS]. Do not immediately rewrite everything. Trace the problem step by step, identify the most probable root cause, explain why it occurs, propose the smallest reliable fix, check for side effects, and create tests that prove the fix works.
Fill in the blanks (optional)
Type your details and the prompt above updates. Copy uses what you've filled in; blanks stay as [PLACEHOLDERS].
Fill in the [PLACEHOLDERS] before sending. Never paste real customer data into an AI tool you don't control.
Got a prompt that works for you? Add your prompt. It takes a minute.
Some links are affiliate or sponsored: we may earn a commission at no cost to you. Sponsor this spot →
Related prompts
Browse: Research & bot prompts · More Gemini prompts
Something wrong with this prompt? Contact us or submit a better one.
