Skip to content

Commit d8c21a6

Browse files
melisoner2006novemberborn
authored andcommitted
Update debugging with webstorm recipe (#1483)
Update debugging with Webstorm recipe to include Node options flag --inspect-brk.
1 parent 14f7095 commit d8c21a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/recipes/debugging-with-webstorm.md

Lines changed: 5 additions & 1 deletion
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,7 +44,9 @@ 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

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

4751
Save the configuration.
4852

0 commit comments

Comments
 (0)