Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.

Commit 702812b

Browse files
author
Dmitry Guketlev
committed
Documentation for new configuration option
1 parent 8733995 commit 702812b

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ See our wiki page for some configured example apps: [Examples](https://github.co
135135
* `userDataDir`: Normally, if Chrome is already running when you start debugging with a launch config, then the new instance won't start in remote debugging mode. So by default, the extension launches Chrome with a separate user profile in a temp folder. Use this option to set a different path to use, or set to false to launch with your default user profile.
136136
* `url`: On a 'launch' config, it will launch Chrome at this URL.
137137
* `urlFilter`: On an 'attach' config, or a 'launch' config with no 'url' set, search for a page with this url and attach to it. It can also contain wildcards, for example, `"localhost:*/app"` will match either `"http://localhost:123/app"` or `"http://localhost:456/app"`, but not `"https://stackoverflow.com"`.
138+
* `targetTypes`: On an 'attach' config, or a 'launch' config with no 'url' set, search for a target with one of provided types. Possible target path in Chrome are `page`, `iframe`, `shared_worker`, `service_worker`, `browser`, `webview` and `other`. By default equals to `['page']`.
138139
* `sourceMaps`: By default, the adapter will use sourcemaps and your original sources whenever possible. You can disable this by setting `sourceMaps` to false.
139140
* `pathMapping`: This property takes a mapping of URL paths to local paths, to give you more flexibility in how URLs are resolved to local files. `"webRoot": "${workspaceFolder}"` is just shorthand for a pathMapping like `{ "/": "${workspaceFolder}" }`.
140141
* `smartStep`: Automatically steps over code that doesn't map to source files. Especially useful for debugging with async/await.

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@
264264
"description": "%chrome.urlFilter.description%",
265265
"default": ""
266266
},
267+
"targetTypes": {
268+
"type": "array",
269+
"description": "%chrome.targetTypes.description%",
270+
"default": ""
271+
},
267272
"showAsyncStacks": {
268273
"type": "boolean",
269274
"description": "%chrome.showAsyncStacks.description%",

package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"chrome.timeout.description": "Retry for this number of milliseconds to connect to Chrome. Default is 10000 ms.",
2626
"chrome.disableNetworkCache.description": "Controls whether to skip the network cache for each request",
2727
"chrome.urlFilter.description": "Will search for a page with this url and attach to it, if found. Can have * wildcards.",
28+
"chrome.targetTypes.description": "Will search for a page with one of this types. Equals to ['page'] by default.",
2829
"chrome.showAsyncStacks.description": "Show the async calls that led to the current call stack",
2930
"chrome.breakOnLoad.description": "Experimental feature - If true, the debug adapter will attempt to set breakpoints in scripts before they are loaded, so it can hit breakpoints at the beginnings of those scripts. Has a perf impact.",
3031
"chrome.breakOnLoadStrategy.description": "The strategy to use for breakOnLoad.",

0 commit comments

Comments
 (0)