# DevToolsExtensions

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

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

```rust
trait DevToolsExtensions
```

Extension methods for attaching DevTools..

Implemented by top levels (windows) and by the application.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/dev_tools_extensions.rs#L12)

## Members

- [`attach_dev_tools`](#function-attach_dev_tools)
- [`attach_dev_tools_with_options`](#function-attach_dev_tools_with_options)

<a id="function-attach_dev_tools"></a>

### attach_dev_tools

```rust
fn attach_dev_tools(self: &Self)
```

Attaches DevTools, to be opened with the F12 key.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/dev_tools_extensions.rs#L14)

<a id="function-attach_dev_tools_with_options"></a>

### attach_dev_tools_with_options

```rust
fn attach_dev_tools_with_options(self: &Self, options: Rc<DevToolsOptions>)
```

Attaches DevTools, to be opened with the specified options.

`options` are the additional settings of DevTools.

For an application, attach DevTools should only be called after application
initialization is complete. A good point is `on_framework_initialization_completed`:

```ignore
impl ApplicationImpl for App {
    fn on_framework_initialization_completed(this: &Self) {
        // Create the main window of the lifetime of the application...
        Self::parent_on_framework_initialization_completed(this);
        this.attach_dev_tools_with_options(DevToolsOptions::new().with_startup_screen_index(Some(1)));
    }
}
```

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/dev_tools_extensions.rs#L32)

## Trait implementations

- [`DevToolsExtensions`](/docs/0.5.0/api/ferroui-diagnostics/trait-devtoolsextensions/)

## Availability

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