---
title: "setAutofillDebugEnabled"
description: "Used to enable androidx.compose.ui.autofill.AutofillLoggingCallback."
type: "function"
lastmod: "2026-04-23T11:19:39.115861Z"
---
## API Reference

### setAutofillDebugEnabled

> Source set: Android

```kotlin
fun ComposeView.Companion.setAutofillDebugEnabled(enabled: Boolean)
```

Used to enable `androidx.compose.ui.autofill.AutofillLoggingCallback`. Adds debug logs to help
debug autofill input events.
