# diagnostics

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/diagnostics/

**module** · [`ferroui-view`](/docs/0.5.0/api/ferroui-view/) · v0.5.0

```rust
module diagnostics
```

Warnings about mistakes the framework can see while it mounts and patches
element trees ([`Diagnostic`](/docs/0.5.0/api/ferroui-view/diagnostics/enum-diagnostic/)). They are checked in debug builds (a panic
an error boundary caught is reported in every build); the handler set
with [`set_diagnostics_handler`](/docs/0.5.0/api/ferroui-view/diagnostics/function-set_diagnostics_handler/) receives them, and without one they are
printed to the standard error, each once.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/diagnostics.rs#L1)

## Contents

- [`Diagnostic`](/docs/0.5.0/api/ferroui-view/diagnostics/enum-diagnostic/) — enum
- [`RUNAWAY_RUNS`](/docs/0.5.0/api/ferroui-view/diagnostics/constant-runaway_runs/) — constant
- [`set_diagnostics_handler`](/docs/0.5.0/api/ferroui-view/diagnostics/function-set_diagnostics_handler/) — function
- [`clear_diagnostics_handler`](/docs/0.5.0/api/ferroui-view/diagnostics/function-clear_diagnostics_handler/) — function

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
