The Prompt Library
CodingDebugging

General Debugging Assistant

Walk through a bug or error step-by-step to find the issue.

Select Model:

Prompt:

I need help debugging an issue in my code. Please walk me through identifying and solving the problem. ISSUE DESCRIPTION: [DESCRIBE_PROBLEM] PROBLEMATIC CODE: ``` [CODE_SNIPPET] ``` ERROR OR UNEXPECTED BEHAVIOR: ``` [ERROR_MESSAGE_OR_UNEXPECTED_BEHAVIOR] ``` CONTEXT: - Language/Framework: [LANGUAGE_OR_FRAMEWORK] - Version: [VERSION_INFO] - Environment: [ENVIRONMENT_DETAILS] - Dependencies: [RELEVANT_DEPENDENCIES] DEBUGGING INFORMATION: - What I've tried: [PREVIOUS_ATTEMPTS] - Expected outcome: [EXPECTED_BEHAVIOR] - Actual outcome: [ACTUAL_BEHAVIOR] - When this started: [ISSUE_TIMELINE] Please help me with: 1. Problem Analysis - What could be causing this issue - How to interpret the error message - Which parts of the code are most suspect 2. Debugging Strategy - How to approach troubleshooting systematically - What tests or checks would help isolate the issue - Specific areas to investigate further 3. Potential Solutions - How to fix the identified issues - Code examples of correct implementation - How to verify the solution works 4. Learning Opportunity - Why this issue occurred - How to prevent similar issues - Best practices related to this problem Please explain your reasoning as you go through the debugging process so I can learn from your approach.

Related Prompts

Other prompts you might find useful

CodingDebugging

General Debugging Assistant

Walk through a bug or error step-by-step to find the issue.

6 models availableView details
CodingDebugging

Read and Explain Stack Trace

Interpret error logs or stack traces from any programming language.

6 models availableView details
CodingDebugging

Fix a Logic Bug

Describe unexpected behavior and get help correcting your logic.

6 models availableView details
CodingDebugging

Identify Edge Case Failures

Find edge cases that might break your code or cause silent errors.

6 models availableView details