- Set the breakpoints in the JavaScript injections, as required.
- Open the required HTML file or select it in the Project view.
- On the context menu, choose Debug <file name>. The file opens in the default browser.
- In the Debug tool window that opens, proceed as usual: step through the program, stop and resume program execution, examine it when suspended, etc.
- Set the breakpoints in the JavaScript injections, as required.
-
Create a debug configuration of the type JavaScript Debug - Local.
- On the main menu, choose .
-
Click the Add New Configuration toolbar button
, and choose JavaScript Debug - Local on the context menu.
- In the Run/Debug Configuration: JavaScript Debug dialog box that opens, specify the full path to the HTML file that implements the page to start debugging from. Choose the browser to debug the application in (Firefox or Google Chrome). Click OK to save the configuration settings.
-
Choose on the main menu, or click the Debug button
on the toolbar,
or press Shift+F9Shift+F9Shift+F9Shift+F9Shift+F9Alt+F5Ctrl+F5Alt+Shift+D or Shift+F9Shift F9Shift F9Meta F11. The specified starting HTML file opens in the default browser.
- In the Debug tool window that opens, proceed as usual: step through the program, stop and resume program execution, examine it when suspended, etc.
- Synchronize with the server where the target application is deployed.
- Set the breakpoints in the JavaScript injections, as required.
-
Create a debug configuration of the type JavaScript Debug - Remote.
- On the main menu, choose .
-
Click the Add New Configuration toolbar button
, and choose JavaScript Debug - Remote on the context menu.
-
In the Run/Debug Configuration: JavaScript Debug dialog box that opens,
choose the browser to debug the application in (Firefox or Google Chrome).
In the URL to open text box, type the URL address of the page to start debugging from.
Set correspondence between files on the server and their local copies by mapping paths to local files to URL addresses of files on the server. You can specify URL addresses in the absolute form (http://<host>:<port>/<path_to_server_root>/<path_to_file>) or relative to the server root URL (/<path_to_file>).
Click OK to save the configuration settings.
-
Choose on the main menu, or click Debug button
on the toolbar,
or press Shift+F9Shift+F9Shift+F9Shift+F9Shift+F9Alt+F5Ctrl+F5Alt+Shift+D or Shift+F9Shift F9Shift F9Meta F11. The specified starting HTML file opens in the default browser.
- In the Debug tool window that opens, proceed as usual: step through the program, stop and resume program execution, examine it when suspended, etc.

