# Generate Diagnostics

### Diagnostics can be requested on dope.cloud, but you can also generate diagnostics from the endpoint itself.

Select **Generate Diagnostics** from the [https://github.com/dopesecurity/docs/blob/main/dope.endpoint/dope.endpoint-ui](https://github.com/dopesecurity/docs/blob/main/dope.endpoint/dope.endpoint-ui "mention").

## Run Diagnostics

To get the dope.endpoint to run a set of diagnostic tests, select the “Generate Diagnostics” option from the dope.endpoint UI.

{% hint style="info" %}
**Windows:** Right click on the DS, and select “Generate Diagnostics.”

**macOS:** Option ⌥ + click on the DS icon in the menu bar, then select “Generate Diagnostics.”
{% endhint %}

dope.endpoint will run a set of tests, gather internal and relevant OS logs, and upload it to the dope.cloud.

{% hint style="info" %}
Debug logs can also be manually retrieved from these directories:\
\
**Windows:** `C:\ProgramData\dope.security`

**macOS:** `/Library/Application\ Support/dope.security`
{% endhint %}

## Enable Debug Mode

In some cases, you may need to enable debug mode to help solve a problem. This can be done by selecting “Enable Debug Mode” from the dope.endpoint UI.

{% hint style="info" %}
**Windows:** Right click on the DS icon, and select “Enable Debug Mode”

**macOS:** Option ⌥ + click on the DS icon in the menu bar. Select “Enable Debug Mode.”
{% endhint %}

Once the problem is resolved, you can disable debug mode by selecting "Disable Debug Mode" in the dope.endpoint UI.


---

# 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://inflight.dope.security/dope.endpoint/generate-diagnostics.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.
