# Web Inspector

Polarity includes a remote web debugger which can be used to run the Chrome web inspector on each of the Polarity application windows.  The inspector allows you to view any client side javascript errors, network requests, and the DOM structure of the page.  By default the inspector is disabled.  To turn it on first navigate to your Polarity folder.

{% tabs %}
{% tab title="Windows" %}

```
%localappdata%\Polarity\PolarityX
```

{% endtab %}

{% tab title="macOS" %}

```
~/Library/Preferences/Polarity/PolarityX
```

{% endtab %}

{% tab title="Linux" %}

```
~/.config/Polarity/PolarityX
```

{% endtab %}
{% endtabs %}

If it doesn't already exist, you will need to create a file called `config.json` in this folder.

{% hint style="info" %}
When creating the file, particularly on Windows, ensure the file does not have a hidden extension (e.g., a hidden `.txt` extension).
{% endhint %}

After creating the file, open it up and add the following.

```javascript
{
   "webDebugger": true,	
   "webDebuggerPort": 9999
}
```

Restart the Polarity client, open up the Chrome web browser and navigate to `http://localhost:9999`

You will be presented with three different "Inspectable Pages" you can connect to with the inspector.  Click on the page called **Polarity - Notifications**. This will connect the Chrome Inspector to the Overlay Window.

For more information on the Chrome web inspector please see <https://developers.google.com/web/tools/chrome-devtools/>
