RubyMine 2020.1 Help

Debug with JetBrains Chrome extension

You no longer need to install and use the JetBrains IDE Support Extension for Chrome to debug your applications in RubyMine. However, you can still use it if you want to start a debugging session in the same Chrome instance. By default, RubyMine opens a new window with a custom Chrome user data, see Starting a debugging session with your default Chrome user data.

During a debugging session with the JetBrains Chrome Extension, Live Edit in HTML, CSS, and JavaScript is available. You can also view the DOM tree and the source code of the actual page.

Install the JetBrains Chrome extension

  1. Open the JetBrains IDE Support page in Chrome Web Store.

  2. Click the Add to Chrome button Add Extension to Chrome and then click Add in the Confirm New Extension dialog that opens. The Add to Chrome button changes to Added to Chrome Extension added to Chrome.

Enable Live Edit and debugging with the JetBrains Chrome extension

  1. In the Settings/Preferences dialog Ctrl+Alt+S, go to Build, Execution, Deployment | Debugger | Live Edit.

  2. On the Live Edit page that opens, select the Use JetBrains IDE Support extension for debugging and Live Edit checkbox.

Activate, de-activate, and uninstall JetBrains Chrome extension

  • Control over the JetBrains Chrome extension is provided through the chrome://extensions page. To open the page, just type chrome://extensions in the Chrome address bar. Alternatively click Customize and control Google Chrome (Chrome extension control icon), choose Settings from the context menu, and then click Extensions on the chrome://settings page that opens.

  • To deactivate the extension, clear the Enabled checkbox. The checkbox name changes to Enable.

  • To activate the extension, select the Enable checkbox.

  • To uninstall the extension, click the Remove from Chrome button Remove extension from Chrome.

Specify the actual RubyMine port in the Chrome extension options

During a debugging session, the Chrome extension listens to the port of the JetBrains IDE from which the extension was invoked. Each IDE including RubyMine has its own default port on which it starts.

If for some reason the default RubyMine port is already busy, RubyMine finds the closest available port and starts on it. This results in a conflict: RubyMine is running on a "new" port while the Chrome extension still listens to the port of a previously started product.

The conflict reveals when you initiate a debugging session with Live Edit: the extension fails to connect through the default port, RubyMine waits for connection from the extension and displays the following message with the port number where it is actually running (for example, current port 63342):


  1. Right-click JetBrains Chrome extension and choose Options on the context menu. A web page with the Chrome extension options opens showing the parameters to connect to RubyMine.

  2. In the IDE Connection area, specify the actual RubyMine port in the Port spin box.

Override the default CORS settings

Suppose the page you are debugging with Live Edit requests a resource which is, for security reasons, protected against access through CORS settings. You can enable access to the protected resources by changing the Chrome extension options.

  1. Right-click JetBrains Chrome Extension and choose Options on the context menu. A web page with Chrome extension options opens showing the parameters to connect to RubyMine.

  2. In the Force CORS text box, type the pattern that defines the URL addresses you want to make accessible, for example:*.

Last modified: 29 May 2020