JavaScript debugging is supported in Firefox or Google Chrome only.
On this page:
No run configuration is required for launching applications with injected JavaScript from PyCharm. 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:
- Choose Alt+F2. Then select the desired browser from the pop-up menu. on the main menu or press
-
Hover your mouse pointer over the code to show the browser icons bar:
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.
- If you are using Chrome or Dartium, install and configure the JetBrains Chrome Extension. For details, see Using JetBrains Chrome Extension.
- Step through the program, stop and resume program execution, examine it when suspended, etc.