PhpStorm 6.0.1 Web Help

In this part:

To run a file with injected JavaScript from PhpStorm

No run configuration is required for launching applications with injected JavaScript from PhpStorm. You just open the HTML page with the reference to the required script in the browser and that's it.

  1. 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.
  2. Do one of the following:
    • To have the application opened in the PhpStorm default browser, choose View | Open in browser on the main menu.
    • To have the application opened in Firefox, choose View | Reload in Firefox on the main menu.
    • To have the application opened in a specific browser of your choice, choose View | Web preview on the main menu or press NothingNothingNothingNothingNothingNothingNothingNothingNothingNothingNothing. 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:

      browserIcons

To debug JavaScript code, perform these general steps:
  1. Configure the JavaScript debugger.
  2. Configure and set breakpoints in the JavaScript code as required.
  3. Initiate a debugging session.
  4. 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.

See Also

Concepts:

Procedures:

Reference:

External Links:

Web Resources: