Skip to content

Commit bcb77fc

Browse files
cdaringenovemberborn
authored andcommittedJan 22, 2018
Recommend skipFiles for VSCode debugging
VSCode steps into native code at each `await` statement. using skipFiles on node_internals yields a more dev-expected debug experience.
1 parent cd8c91b commit bcb77fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎docs/recipes/debugging-with-vscode.md

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Add following to the `configurations` object:
1818
"program": "${workspaceRoot}/node_modules/ava/profile.js",
1919
"args": [
2020
"${file}"
21+
],
22+
"skipFiles": [
23+
"<node_internals>/**/*.js"
2124
]
2225
}
2326
```
@@ -47,6 +50,9 @@ By default AVA runs tests concurrently. This may complicate debugging. Add a con
4750
"args": [
4851
"--serial",
4952
"${file}"
53+
],
54+
"skipFiles": [
55+
"<node_internals>/**/*.js"
5056
]
5157
}
5258
```

0 commit comments

Comments
 (0)
Please sign in to comment.