> ## Documentation Index
> Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# debugState

> Capture device state for debugging.

Captures the current device state for debugging. Takes no options, so it is
usually written as a bare command. Intended for local debugging rather than
committed tests.

## Parameters

| Parameter | Type      | Required | Description                                                 |
| --------- | --------- | -------- | ----------------------------------------------------------- |
| `saveAs`  | `string`  | No       | Variable to store this step's return value on `env.<name>`. |
| `retries` | `number`  | No       | Times to retry the step on failure before failing the test. |
| `skipped` | `boolean` | No       | Skip this step at execution time.                           |

## Shorthand

A bare command with no options.

```yaml theme={null}
- debugState
```

## Related

* [Test format](/core-concepts/test-format)
