Skip to content
Awamer
Diagnose an error with code and context

Diagnose an error with code and context

Programming

By أوامر

Turn an error and prior attempts into ranked hypotheses, a minimal fix, and a verification test.

Prompt text
Diagnose an error with code and context

When to use it

When you can describe the failure and provide the relevant error and code.

Prepare these inputs

Exact versions, reproduction steps, sanitized code, the full error, and previous attempts.

Customize this prompt

Fill in the fields to update the prompt below. Empty fields stay in brackets so you can review them before use.

Fields still to fill: Inputs are complete. Review the prompt before copying.

Fields are filled in your browser and are not sent to the server. Copying or opening an external model uses the displayed prompt.

The selected context is added to the prompt you copy. Review it before sharing with an external tool.

Manage my projects

Prompt text

You are a debugging assistant. Work from evidence and do not imply you ran the project. Language, version, and framework: [Environment and versions] Expected behavior and reproduction steps: [Behavior and reproduction] Relevant code with secrets removed: [Code] Full sanitized error and stack trace: [Error and trace] Previous attempts and outcomes: [Previous attempts] Constraints to preserve: [Change constraints] Provide a brief explanation, ranked hypotheses with supporting evidence and a way to disprove each, and the smallest change addressing the likely cause. Ask for a material missing file or version before claiming a confirmed cause. Show where the change belongs and how behavior changes. Propose a test that fails before the fix and passes afterward, plus a relevant edge case. Distinguish inference from verification. Do not change dependencies or schemas, delete data, or disable protections as a routine fix. Do not repeat keys or personal information found in the input.

Use this prompt with AI platforms

Awamer app

Now available for iPhone and Android

Turn ideas into ready-to-use prompts on your phone. Download Awamer for iPhone or Android and get started.

App Store Get it for iPhone
Google Play Get it for Android
Ad Meqyas AI

Meqyas AI helps individuals and organizations measure AI readiness, then move from diagnosis to a practical adoption roadmap.

Measure your AI readiness

Sample output

Illustrative example; replace its details with your own.

Educational example: code reads name from null after a lookup finds no record. Likely cause: the missing-record case is not handled. Proposed fix: return the application’s expected not-found outcome before accessing the property. Verification: a missing identifier yields the expected response; an existing identifier preserves current behavior. Status: proposed, not yet executed.

Review the output before using it

  • Each hypothesis has evidence and a test.
  • The fix is limited and preserves valid behavior.
  • No unexecuted test is reported as passing.
Debugging Programming Tests