IntelliJ IDEA 2017.3 Help

Configuring JavaScript Debugger

This feature is only supported in the Ultimate edition.

Debugging JavaScript in IntelliJ IDEA is supported through the JavaScript Debugger plugin. The plugin is activated by default. If the plugin is disabled, enable it on the Plugins settings page as described in Enabling and Disabling Plugins.

Debugging of JavaScript code is supported in Google Chrome and other browsers of the Chrome family.

To ensure successful debugging, it is enough to specify the built-in web server port and accept the default settings that IntelliJ IDEA suggests for other debugger options.

To set the built-in web server port

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), click Debugger under Build, Execution, Deployment. The Debugger page opens.
  2. In the Built-in server area, specify the port where the built-in web server runs. By default this port is set to the default IntelliJ IDEA port 63342 through which IntelliJ IDEA accepts connections from services. You can set the port number to any other value starting with 1024 and higher.
    If the Live Edit functionality is enabled, the JetBrains Chrome extension will also use this port to connect to the running page, see Live Edit in HTML, CSS, and JavaScript for details.

Optionally

  1. Suppress calls to the files on the built-in server from other computers or from outside IntelliJ IDEA by clearing the Can accept external connections or Allow unsigned requests checkbox respectively.
  2. Choose the way to remove breakpoints, the default setting is Click.
  3. On the Data Views page under the Debugger node, configure advanced debugger options: enable or disable Inline Debugging, specify when you want to see tooltips with object values and expressions evaluation results, etc.
  4. Click JavaScript under the Data Views node and on the JavaScript page that opens, specify the following:
    • Whether you want object node properties to be shown. If so, specify the properties. Use new and delete to manage the list of properties.

Last modified: 12 December 2017

See Also