# Troubleshoot with prompts

### **Why Prompt-Based Debugging Works**

With the right prompt, you can do more than create — you can dissect, inspect, and repair your existing screens or logic. When something feels off, stops working, or suddenly disappears, Dualite guides you through a clear, step-by-step debugging process using nothing but prompts.

You need to be giving it two core data points of **what is going wrong**:

1. A reference image if something visually is not aligned (for example, there is not a nav bar where it was supposed to be) in the bottom-right chatbox
2. A specific, concise, and detailed prompt on what is not there and what should be there ideally.

### **Example: Gemini AI integration**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://alphadocs.dualite.dev/prompting/troubleshoot-with-prompts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
