Skip to content

Commit 602e4fd

Browse files
melisoner2006kevva
authored andcommitted
Update debugging with webstorm recipe (#1483)
Update debugging with Webstorm recipe to include Node options flag --inspect-brk.
1 parent 65ecff4 commit 602e4fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/recipes/debugging-with-webstorm.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ In the `JavaScript file` field specify the path to AVA in the project's `node_mo
1313

1414
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`.
1515

16+
In the `Node parameters`, for Node.js 7+, pass the `--inspect-brk` flag to enable the Node inspector. For earlier versions use `--debug-brk`.
17+
1618
Save the configuration.
1719

1820
## Setup using npm
@@ -42,6 +44,8 @@ Use the following configuration parameters:
4244

4345
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.
4446

47+
In the `Node parameters`, for Node.js 7+ pass `--inspect-brk` or `--debug-brk` for earlier versions.
48+
4549
Don't forget to select a Node.js interpreter.
4650

4751
Save the configuration.

0 commit comments

Comments
 (0)