- Prepare the unit tests to run.
- In the unit tests, set the breakpoints for PhpStorm to postpone test execution at.
- Create a test runner configuration file.
- Start a PhpStorm default JSTestDriver test server.
- Capture a browser to execute the tests in.
- Create a JSTestDriver run configuration. If you have captured two browsers, specify the browser for debugging the tests: in the Debug tab of the Run/Debug Configuration: JSTestDriver dialog box, choose the relevant browser from the Debug drop-down list. The available options are Chrome and Firefox.
-
Choose on the main menu, or click Debug button
on the toolbar, or press Shift+F9Shift+F9.
- In the Debug tool window that opens, proceed as usual: step through the program, stop and resume program execution, examine it when suspended, etc.

