Category
Code & Dev

Debug Code Like a Senior Engineer

Trace software issues to their root cause, prioritize findings, and implement and verify the smallest reliable fixes.

By Threads — Published on

Prompt template

Format
Text Parameterized
Inputs
project (text, code) · Required problem_or_error (text) · Required environment (text) · Required expected_result (text) · Required
Outputs
debugging_report_and_fix (text, code)

Replace the ${…} placeholders with your values before using this prompt. See parameters and defaults below.

Act as an expert debugging engineer. My application, ${project}, has this problem: ${problem-or-error}. My environment is ${environment}, and the expected behavior is ${expected-result}. Inspect the relevant code and trace the issue to its root cause rather than treating only the visible symptoms.

Rank findings by severity and impact, and provide evidence for each significant issue. Explain the evidence behind your diagnosis, identify related failure cases, and propose the smallest high-value changes that improve reliability and maintainability. Implement the smallest reliable fix, add regression tests where appropriate, and verify that the fix does not break existing functionality.

Parameters

Replace each placeholder with your own value, or use its default when one is provided.

${project} project Required
${problem-or-error} problem-or-error Required
${environment} environment Required
${expected-result} expected-result Required

Comments — 0

Related prompts

Browse all prompts