No run configuration is required for launching applications with injected JavaScript code from PyCharm. You just open the starting HTML page of your application in the browser and that's it.
- Open the HTML file that implements the starting page of your application in the editor.
-
Do one of the following:
- To have the application opened in the PyCharm 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+F2.
Then select the desired browser from the pop-up menu.
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.
JavaScript debugging is supported for Firefox or Google Chrome only.
