# Debugging

Since the widget runs within a webview in the mobile app, you can use the Chrome inspector on Android or Safari Web Inspector on iOS to debug. This allows you to view the console and inspect the HTML of the widget.

## Android Debugging

### Mobile

1. Plug in your mobile device.
2. Ensure USB debugging is enabled:\
   **Settings** → **System** → **Developer options** → enable **USB debugging**.

### PC

1. Open **Chrome** and navigate to `chrome://inspect/#devices` (or on **Edge**, use `edge://inspect/#devices`).
2. Under **Remote Target**, look for **"WebView in app.homey."**
3. Click **Inspect**.

## iOS Debugging

### Mobile

1. Plug in your mobile device.
2. Ensure USB debugging is enabled:\
   **Settings** → **System** → **About Phone** → **Developer options** → enable **USB debugging**.

### PC

1. Open **Safari** Settings, go to the **Advanced** tab, and enable the checkbox **"Show Develop menu in menu bar."**
2. In **Safari** , go to **Develop** → **\[device name]** → **\[app name]** → **\[url - title]**.

<figure><img src="https://998911913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPk9cn4V7WnnKt7fbry%2Fuploads%2Fgit-blob-090a5a17ee9dacb775fd631e96e28c0d6c9bc5a1%2Fimage.png?alt=media" alt=""><figcaption><p>Chrome Web Inspector</p></figcaption></figure>
