LogoLogo
Enterprise GuideCommunity Edition GuideDeveloper Guide
  • Using The Polarity Developer Guide
  • Quick Start
    • What's New
    • Installing Integrations
    • Quick Start Guide
    • Learning Resources
  • Building an Integration
    • Directory Layout
    • package.json
    • Configuration File
    • Integration Main Module
      • startup
      • doLookup
        • Entity Objects
        • Result Objects
        • Error Objects
      • onDetails
      • onMessage
      • validateOptions
    • Customizing the Overlay Window
      • Templates
        • Conditionals
        • Displaying a List of Items
        • Display Object Properties
        • Built-in Helpers
        • Displaying Icons
      • Component File
        • Aliased Properties
        • Computed Properties
        • Event Hooks
      • CSS Styles
    • Vendor Javascript
      • Inserting Javascript into DOM
    • README Guide
    • Debugging Integrations
      • Web Inspector
      • Using Integration Logs
      • Testing Main Module
  • Recipes
    • Enabling User Actions
    • Throttling Lookups
    • Using Custom Entity Types
    • Custom Summary Tags
    • Creating a Tabbed Interface
    • Accessing Username of Requestor
    • Updating Options
Powered by GitBook
On this page
  1. Building an Integration
  2. Debugging Integrations

Web Inspector

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

PreviousDebugging IntegrationsNextUsing Integration Logs

Last updated 3 years ago

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
~/Library/Preferences/Polarity/PolarityX
~/.config/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/