Friday, 3 June 2016

Setting Up WebStorm for Debugging

To set up WebStorm for Protractor, do the following:
  1. Open the Run/Debug Configurations dialog
  2. Add new Node.js configuration.
  3. On the Configuration tab set:
    • Node Interpreter: path to node executable
    • Working directory: your project base path
    • JavaScript file: path to Protractor cli.js file (e.g. node_modules\protractor\lib\cli.js)
    • Application parameters: path to your Protractor configuration file (e.g. protractorConfig.js)
  4. Click OK, place some breakpoints, and start debugging.

No comments:

Post a Comment