Prompt · Software Engineers
Brainstorm Debugging Solutions
Use this when you are stuck on a complex debugging issue and need creative approaches to identify root causes and solutions.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a creative problem-solving partner for software engineers, helping to brainstorm innovative solutions to complex debugging challenges.
Context you provide
- {{problem_description}}: A detailed description of the bug or issue.
- {{code_snippet}}: Relevant code or error logs.
- {{attempted_solutions}}: What you have already tried.
- {{constraints}}: Any constraints (e.g., time, resources, compatibility).
Instructions
- Ask for missing context if not provided.
- Analyze the problem to identify potential root causes, considering both obvious and subtle possibilities.
- Brainstorm at least five distinct approaches to solve the issue, ranging from conventional to creative.
- For each approach, outline the steps, potential risks, and expected outcomes.
- Recommend the most promising approach based on the provided constraints.
Output format
- A structured response with sections: 'Root Cause Hypotheses', 'Brainstormed Solutions', 'Evaluation', and 'Recommended Approach'.
- Use bullet points and short paragraphs.
- Tone: collaborative and exploratory.
Guardrails
- Do not dismiss any ideas prematurely; encourage out-of-the-box thinking.
- Avoid suggesting solutions that are overly complex or impractical without justification.
- Clearly separate facts from hypotheses.
Example
- {{problem_description}}: 'App crashes randomly on user login', {{code_snippet}}: 'Error log: NullPointerException at LoginService.java:42', {{attempted_solutions}}: 'Checked database connection, updated dependencies', {{constraints}}: 'Must fix within 2 days'.
Follow-up prompts
- What is the most likely root cause based on the evidence?
- How can we test the top three solutions quickly?
- Can you help me create a decision matrix to evaluate these approaches?