Skip to content
This repository was archived by the owner on Sep 17, 2021. It is now read-only.

Commit dc141bd

Browse files
committed
Updating readme
1 parent 49cc856 commit dc141bd

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ You can launch the Chrome DevTools hosted in VS Code like you would a debugger,
2222
To do this in your `launch.json` add a new debug config with two parameters.
2323
- `type` - The name of the debugger which must be `devtools-for-chrome`. Required.
2424
- `url` - The url to launch Chrome at. Optional.
25-
- `request` - Whether a new tab in Chrome should be opened `launch` or to use an exsisting tab `attach` matched by URI. Optional.
25+
- `file` - The local file path to launch Chrome at. Optional.
26+
- `request` - Whether a new tab in Chrome should be opened `launch` or to use an exsisting tab `attach` matched on URL. Optional.
2627
- `name` - A friendly name to show in the VS Code UI. Required.
2728
```
2829
{
@@ -31,8 +32,14 @@ To do this in your `launch.json` add a new debug config with two parameters.
3132
{
3233
"type": "devtools-for-chrome",
3334
"request": "launch",
34-
"name": "Launch Chrome",
35-
"url": "${workspaceFolder}/index.html"
35+
"name": "Launch Chrome DevTools",
36+
"file": "${workspaceFolder}/index.html"
37+
},
38+
{
39+
"type": "devtools-for-chrome",
40+
"request": "attach",
41+
"name": "Attach Chrome DevTools",
42+
"file": "${workspaceFolder}/index.html"
3643
}
3744
]
3845
}

0 commit comments

Comments
 (0)