No run configuration is required for launching applications with injected JavaScript from RubyMine. You just open the HTML page with the reference to the required script in the browser and that's it.
- In the editor, open the HTML file with the JavaScript reference. This HTML file does not necessarily have to be the one that implements the starting page of the application.
-
Do one of the following:
- To have the application opened in the RubyMine default browser, choose on the main menu.
- To have the application opened in Firefox, choose on the main menu.
-
To have the application opened in a specific browser of your choice,
choose on the main menu or press Alt+F2Alt+F2.
Then select the desired browser from the pop-up menu.
Tip
Alternatively, hover your mouse pointer over the code to show the browser icons bar, and click the icon that indicates the desired browser:

- Configure the JavaScript debugger.
- Configure and set breakpoints in the JavaScript code as required.
- Initiate a debugging session.
- Step through the program, stop and resume program execution, examine it when suspended, etc.
Note
JavaScript debugging is supported for Firefox or Google Chrome only.

