Web Inspector

You can enable the Chrome web inspector to help debug and design your integration

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.

%localappdata%\Polarity\PolarityX

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

When creating the file, particularly on Windows, ensure the file does not have a hidden extension (e.g., a hidden .txt extension).

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

{
   "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/

Last updated