> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/utility/debug-element.md). Agents can also search and read this documentation through its [MCP server](https://docs.does.qa/~gitbook/mcp).

# Debug Element

Record Element details in the Test Case result.

Debug Element writes details about an [Element](https://docs.does.qa/elements/creating-elements.md) into the Test Case result. Use it while building or fixing a Flow to see what the runner resolved on the page.

![Debug element Test Step](https://static.does.qa/assets/nodes/utility_debug_element.png)

## When to use it

* Confirm an Element selector still matches after a UI change.
* Inspect Element output when a Check or Touch step fails unexpectedly.
* Pair with [Debug Value](https://docs.does.qa/test-steps/utility/debug-value.md) when both page output and stored Values matter.

## Configure

### Basics

| Field       | What to set                                                                               |
| ----------- | ----------------------------------------------------------------------------------------- |
| **Element** | The [Element](https://docs.does.qa/elements/creating-elements.md) to record in the result |

### Advanced

| Field              | What to set                                                              |
| ------------------ | ------------------------------------------------------------------------ |
| **Status on fail** | [Failed Status](https://docs.does.qa/test-step-options/failed-status.md) |

{% hint style="info" %}
**Pro tip:** Debug Element adds no user-facing action. Place it before the failing step, run the Test Case once, then remove it when the Flow is stable.
{% endhint %}

## Related

* [Debug Value](https://docs.does.qa/test-steps/utility/debug-value.md)
* [Creating Elements](https://docs.does.qa/elements/creating-elements.md)
* [Utilities](https://docs.does.qa/test-steps/utility.md)

**Tags:** `utility`, `debug`, `element`, `log`, `console`, `print`
