diff --git a/docs/recipes/debugging-with-webstorm.md b/docs/recipes/debugging-with-webstorm.md index 21df4f04d..20d742273 100644 --- a/docs/recipes/debugging-with-webstorm.md +++ b/docs/recipes/debugging-with-webstorm.md @@ -13,6 +13,8 @@ In the `JavaScript file` field specify the path to AVA in the project's `node_mo In the `Application parameters` pass the CLI flags you're using and the test files you would like to debug, for example `--verbose test.js`. +In the `Node parameters`, for Node.js 7+, pass the `--inspect-brk` flag to enable the Node inspector. For earlier versions use `--debug-brk`. + Save the configuration. ## Setup using npm @@ -42,7 +44,9 @@ Use the following configuration parameters: Your IDE will then execute `npm run test` and thus call `node_modules/.bin/ava` and the AVA-configuration you have specified in your package.json. -Don't forget to select a Node.js interpreter. +In the `Node parameters`, for Node.js 7+ pass `--inspect-brk` or `--debug-brk` for earlier versions. + +Don't forget to select a Node.js interpreter. Save the configuration.