Search Posts

Search through prompts, categories, and agents

Promptly

Prompts in

Debugging & Error Fixes

Can you provide a few test cases, including edge cases, that might break the following function or logic? [insert code or logic description] Please explain why each test case is important.
Act as a code reviewer. Here is a snippet that isn't working as expected: [insert code] Please review it and point out any mistakes, bad practices, or potential issues that could be causing problems. Provide suggestions for improvement and explain your reasoning.
Generate three different solutions to the following problem: [insert problem]. Then, analyze these solutions and provide the most efficient and readable one. Explain your reasoning for choosing this solution.
I will explain what this function is doing: [your explanation]. Given that, is my reasoning correct and does it reveal where the bug is? Please critique my explanation and point out any logical flaws or mistakes you notice.
You are a debugging assistant. Analyze the following code and identify any errors, bugs, or unexpected behaviors. Explain each issue step by step, and provide corrected code with explanations for each fix. Here is the code: [Paste your code here]
Help me to solve the issue and write updated code. Also explain what the issue was and what you did to fix it. Issue (optional): [explain issue] Code: [paste your code]
Generate three different solutions to the following problem. Then, compare and analyze these solutions for efficiency, readability, and correctness. Select the best one and explain your reasoning for choosing it. Problem: [describe your problem]
You are a systematic debugger. Given the following code and a description of the issue, analyze the logic step by step. Identify possible logical errors, edge cases, and suggest corrections. For each step, explain your reasoning and how it leads to the next. Code: [paste your code] Issue: [describe the observed issue]