Skip to content

Commit

Permalink
[docs] Debug recipe for visual studio code updated (#1375) (#1382)
Browse files Browse the repository at this point in the history
* [docs] Debug recipe for visual studio code updated (#1375)

* Fix remark
  • Loading branch information
georgiy-abbasov authored and inikulin committed Apr 12, 2017
1 parent e8235a8 commit 33a28c5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ You will need to add the following configuration to the `launch.json` file.
```json
{
"type": "node",
"protocol": "inspector",
"request": "launch",
"name": "Launch test files with TestCafe",
"program": "${workspaceRoot}/node_modules/testcafe/bin/testcafe.js",
Expand All @@ -44,6 +45,7 @@ You will need to add the following configuration to the `launch.json` file.
This configuration contains the following attributes:

* `type` - specifies the type of the configuration. Set to `node` for a Node.js configuration.
* `protocol` - specifies the Node.js [debugger wire protocol](https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_supported-nodelike-runtimes). Note that the inspector protocol is supported in Node.js v6.3 (or v6.9 for Windows) or later. For early versions, omit this property. In that case, a legacy debugger protocol will be used. Legacy protocol is well known for its issues with source map support, therefore newer versions of Node.js are recommended.
* `request` - specifies the request type. Set to `launch` since this configuration launches a program.
* `name` - specifies the name of the configuration.
* `program` - path to a JS file that will be executed. In this case, it is the TestCafe module.
Expand Down

0 comments on commit 33a28c5

Please sign in to comment.