# FormatOptions

`import { FormatOptions } from "destack:debug";`

Debug formatting options.

```ds title="FormatOptions"
export struct FormatOptions {
    depth: uint32 | null;
    colors: boolean;
    maxArrayLength: usize;
    maxStringLength: usize;
}
```

[language/library/src/debug/format.ds:4:16](https://github.com/destack-sh/destack/blob/main/language/library/src/debug/format.ds#L4-L16)

## Members

### `depth: uint32 | null`

Maximum depth for recursive formatting.

### `colors: boolean`

Enable ANSI color output.

### `maxArrayLength: usize`

Maximum array length before truncation.

### `maxStringLength: usize`

Maximum string length before truncation.
