forked from microsoft/vscode-chrome-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
387 lines (387 loc) · 14.6 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
{
"name": "debugger-for-chrome",
"displayName": "Debugger for Chrome",
"version": "3.2.0",
"icon": "images/icon.png",
"description": "Debug your JavaScript code in the Chrome browser, or any other target that supports the Chrome Debugger protocol.",
"author": {
"name": "Microsoft Corporation"
},
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-chrome-debug"
},
"publisher": "msjsdiag",
"bugs": "https://github.com/microsoft/vscode-chrome-debug/issues",
"engines": {
"vscode": "^1.8.0"
},
"categories": [
"Debuggers"
],
"license": "SEE LICENSE IN LICENSE.txt",
"dependencies": {
"vscode-chrome-debug-core": "3.17.0",
"vscode-debugadapter": "^1.22.0"
},
"devDependencies": {
"@types/mocha": "^2.2.35",
"@types/mockery": "^1.4.29",
"@types/node": "^6.0.41",
"@types/source-map": "^0.1.27",
"@types/tmp": "0.0.32",
"concurrently": "^3.1.0",
"glob": "^7.1.1",
"gulp": "^3.9.1",
"http-server": "^0.9.0",
"mocha": "^3.0.2",
"mockery": "^1.7.0",
"tmp": "0.0.31",
"ts-loader": "^1.0.0",
"tslint": "^3.15.1",
"typemoq": "^0.3.3",
"typescript": "^2.4.1",
"vscode": "^1.0.3",
"vscode-chrome-debug-core-testsupport": "^3.16.0",
"vscode-debugadapter-testsupport": "1.22.0",
"vscode-debugprotocol": "^1.22.0",
"webpack": "^2.2.0-rc.1",
"webpack-fail-plugin": "^1.0.5"
},
"main": "./out/src/extension",
"activationEvents": [
"onCommand:extension.chrome-debug.startSession",
"onCommand:extension.chrome-debug.toggleSkippingFile"
],
"scripts": {
"build": "concurrently \"npm run build:debugadapter\" \"npm run build:test\" \"npm run build:outOfBundle\"",
"build:debugadapter": "webpack",
"build:test": "tsc -p test/tsconfig.json",
"build:outOfBundle": "tsc -p outOfBundle/tsconfig.json",
"watch": "concurrently \"npm run watch:debugadapter\" \"npm run watch:test\" \"npm run watch:outOfBundle\"",
"watch:debugadapter": "webpack -w",
"watch:test": "tsc -p test/tsconfig.json -w",
"watch:outOfBundle": "tsc -p outOfBundle/tsconfig.json -w",
"test": "mocha --timeout 20000 -s 2000 -u tdd --colors \"./out/test/*.test.js\"",
"intTest": "mocha --timeout 20000 -s 3500 -u tdd --colors --reporter node_modules/vscode-chrome-debug-core-testsupport/out/loggingReporter.js ./out/test/int/*.test.js",
"lint": "tslint -t verbose \"src/**/*.ts\"",
"vscode:prepublish": "gulp verify-no-linked-modules",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"contributes": {
"breakpoints": [
{
"language": "javascript"
},
{
"language": "typescriptreact"
},
{
"language": "javascriptreact"
},
{
"language": "fsharp"
}
],
"debuggers": [
{
"type": "chrome",
"label": "Chrome",
"program": "./out/bundle.js",
"runtime": "node",
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
"languages": [
"javascript",
"typescript",
"javascriptreact",
"typescriptreact"
],
"startSessionCommand": "extension.chrome-debug.startSession",
"initialConfigurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceRoot}"
}
],
"configurationSnippets": [
{
"label": "Chrome: Launch",
"description": "Launch Chrome to debug a URL",
"body": {
"type": "chrome",
"request": "launch",
"name": "${2:Launch Chrome}",
"url": "http://localhost:8080",
"webRoot": "^\"\\${workspaceRoot}\""
}
},
{
"label": "Chrome: Attach",
"description": "Attach to an instance of Chrome already in debug mode",
"body": {
"type": "chrome",
"request": "attach",
"name": "${2:Attach to Chrome}",
"port": 9222,
"webRoot": "^\"\\${workspaceRoot}\""
}
}
],
"configurationAttributes": {
"launch": {
"required": [],
"properties": {
"port": {
"type": "number",
"description": "Port to use for Chrome remote debugging.",
"default": 9222
},
"address": {
"type": "string",
"description": "TCP/IP address of debug port",
"default": "127.0.0.1"
},
"file": {
"type": "string",
"description": "A local html file to open in the browser",
"default": "${workspaceRoot}/index.html"
},
"url": {
"type": "string",
"description": "A url to open in the browser",
"default": "http://localhost:8080"
},
"webRoot": {
"type": "string",
"description": "When the 'url' field is specified, this specifies the workspace absolute path to the webserver root. Shorthand for a pathMapping for \"/\"",
"default": "${workspaceRoot}"
},
"pathMapping": {
"type": "object",
"description": "A mapping of URLs/paths to local folders, to resolve scripts in Chrome to scripts on disk",
"default": {
"/": "${workspaceRoot}"
}
},
"runtimeExecutable": {
"type": [
"string",
"null"
],
"description": "Workspace absolute path to the runtime executable to be used. If not specified, Chrome will be used from the default install location.",
"default": null
},
"runtimeArgs": {
"type": "array",
"description": "Optional arguments passed to the runtime executable.",
"items": {
"type": "string"
},
"default": []
},
"sourceMaps": {
"type": "boolean",
"description": "Use JavaScript source maps (if they exist).",
"default": true
},
"diagnosticLogging": {
"type": "boolean",
"description": "When true, the adapter logs its own diagnostic info to the console in a human readable format",
"default": true,
"deprecationMessage": "'diagnosticLogging' is deprecated. Use 'trace' instead."
},
"verboseDiagnosticLogging": {
"type": "boolean",
"description": "When true, the adapter logs all traffic with the client and target (as well as the info logged by 'diagnosticLogging')",
"default": true,
"deprecationMessage": "'verboseDiagnosticLogging' is deprecated. Use 'trace' instead."
},
"trace": {
"type": [
"boolean",
"string"
],
"enum": [
"verbose",
true
],
"default": true,
"description": "When 'true', the debugger will log tracing info to a file. When 'verbose', it will also show logs in the console."
},
"userDataDir": {
"type": [
"string",
"boolean"
],
"description": "By default, Chrome is launched with a separate user profile in a temp folder. Use this option to override it. Set to false to launch with your default user profile.",
"default": ""
},
"sourceMapPathOverrides": {
"type": "object",
"description": "A set of mappings for rewriting the locations of source files from what the sourcemap says, to their locations on disk. See README for details.",
"default": {
"webpack:///*": "*",
"webpack:///./*": "${webRoot}/*",
"webpack:///src/*": "${webRoot}/*",
"webpack:///./~/*": "${webRoot}/node_modules/*"
}
},
"smartStep": {
"type": "boolean",
"description": "Automatically step through generated code that cannot be mapped back to the original source.",
"default": true
},
"skipFiles": {
"type": "array",
"description": "An array of file or folder names, or path globs, to skip when debugging.",
"default": []
},
"timeout": {
"type": "number",
"description": "Retry for this number of milliseconds to connect to Chrome. Default is 10000 ms.",
"default": 10000
},
"disableNetworkCache": {
"type": "boolean",
"description": "Controls whether to skip the network cache for each request",
"default": true
},
"urlFilter": {
"type": "string",
"description": "Will search for a page with this url and attach to it, if found. Can have * wildcards.",
"default": ""
},
"showAsyncStacks": {
"type": "boolean",
"description": "Show the async calls that led to the current call stack",
"default": true
}
}
},
"attach": {
"required": [
"port"
],
"properties": {
"port": {
"type": "number",
"description": "Port to use for Chrome remote debugging.",
"default": 9222
},
"address": {
"type": "string",
"description": "TCP/IP address of debug port",
"default": "127.0.0.1"
},
"sourceMaps": {
"type": "boolean",
"description": "Use JavaScript source maps (if they exist).",
"default": true
},
"diagnosticLogging": {
"type": "boolean",
"description": "When true, the adapter logs its own diagnostic info to the console in a human readable format",
"default": true,
"deprecationMessage": "'diagnosticLogging' is deprecated. Use 'trace' instead."
},
"verboseDiagnosticLogging": {
"type": "boolean",
"description": "When true, the adapter logs all traffic with the client and target (as well as the info logged by 'diagnosticLogging')",
"default": true,
"deprecationMessage": "'verboseDiagnosticLogging' is deprecated. Use 'trace' instead."
},
"trace": {
"type": [
"boolean",
"string"
],
"enum": [
"verbose",
true
],
"default": true,
"description": "When 'true', the debugger will log tracing info to a file. When 'verbose', it will also show logs in the console."
},
"url": {
"type": "string",
"description": "Will search for a tab with this EXACT url and attach to it, if found",
"default": "http://localhost:8080"
},
"webRoot": {
"type": "string",
"description": "This specifies the workspace absolute path to the webserver root. Used to resolve paths like `/app.js` to files on disk. Shorthand for a pathMapping for \"/\"",
"default": "${workspaceRoot}"
},
"pathMapping": {
"type": "object",
"description": "A mapping of URLs/paths to local folders, to resolve scripts in Chrome to scripts on disk",
"default": {}
},
"sourceMapPathOverrides": {
"type": "object",
"description": "A set of mappings for rewriting the locations of source files from what the sourcemap says, to their locations on disk. See README for details.",
"default": {}
},
"smartStep": {
"type": "boolean",
"description": "Automatically step through generated code that cannot be mapped back to the original source.",
"default": true
},
"skipFiles": {
"type": "array",
"description": "An array of file or folder names, or path globs, to skip when debugging.",
"default": []
},
"timeout": {
"type": "number",
"description": "Retry for this number of milliseconds to connect to Chrome. Default is 10000 ms.",
"default": 10000
},
"disableNetworkCache": {
"type": "boolean",
"description": "Controls whether to skip the network cache for each request",
"default": true
},
"urlFilter": {
"type": "string",
"description": "Will search for a page with this url and attach to it, if found. Can have * wildcards.",
"default": ""
},
"showAsyncStacks": {
"type": "boolean",
"description": "Show the async calls that led to the current call stack",
"default": true
}
}
}
}
}
],
"menus": {
"debug/callstack/context": [
{
"command": "extension.chrome-debug.toggleSkippingFile",
"group": "navigation",
"when": "inDebugMode && debugType == 'chrome'"
}
]
},
"commands": [
{
"command": "extension.chrome-debug.toggleSkippingFile",
"title": "Toggle Skipping This File"
}
],
"keybindings": [
{
"command": "extension.node-debug.pickLoadedScript",
"key": "ctrl+f4",
"mac": "cmd+f4",
"when": "debugType == 'chrome'"
}
]
}
}