Skip to content

Commit

Permalink
Update debugging with webstorm recipe (#1483)
Browse files Browse the repository at this point in the history
Update debugging with Webstorm recipe to include Node options flag --inspect-brk.
  • Loading branch information
melisoner2006 authored and novemberborn committed Aug 9, 2017
1 parent 14f7095 commit d8c21a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/recipes/debugging-with-webstorm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit d8c21a6

Please sign in to comment.