Skip to content

Commit

Permalink
Recommend skipFiles for VSCode debugging
Browse files Browse the repository at this point in the history
VSCode steps into native code at each `await` statement.  using skipFiles on node_internals yields a more dev-expected debug experience.
  • Loading branch information
cdaringe authored and novemberborn committed Jan 22, 2018
1 parent cd8c91b commit bcb77fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/recipes/debugging-with-vscode.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ Add following to the `configurations` object:
"program": "${workspaceRoot}/node_modules/ava/profile.js",
"args": [
"${file}"
],
"skipFiles": [
"<node_internals>/**/*.js"
]
}
```
Expand Down Expand Up @@ -47,6 +50,9 @@ By default AVA runs tests concurrently. This may complicate debugging. Add a con
"args": [
"--serial",
"${file}"
],
"skipFiles": [
"<node_internals>/**/*.js"
]
}
```
Expand Down

0 comments on commit bcb77fc

Please sign in to comment.