This repository was archived by the owner on Sep 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ You can launch the Chrome DevTools hosted in VS Code like you would a debugger,
2222To 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}
You can’t perform that action at this time.
0 commit comments