This commit is contained in:
Rob Lourens 2017-01-30 17:48:08 -08:00
Родитель 919f50ebcb
Коммит 05962d185e
1 изменённых файлов: 27 добавлений и 2 удалений

Просмотреть файл

@ -90,20 +90,45 @@
"languages": ["javascript", "typescript", "javascriptreact", "typescriptreact"],
"initialConfigurations": [
{
"name": "Launch Chrome against localhost",
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceRoot}"
},
{
"name": "Attach to Chrome",
"type": "chrome",
"request": "attach",
"name": "Attach to Chrome",
"port": 9222,
"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: Launch with userDataDir",
"description": "Launch Chrome with a separate userDataDir, useful when another instance of Chrome is already running",
"body": {
"type": "chrome",
"request": "launch",
"name": "${2:Launch Chrome}",
"url": "http://localhost:8080",
"webRoot": "^\"\\${workspaceRoot}\"",
"userDataDir": "^\"\\${workspaceRoot}/.vscode/chrome\""
}
}
],
"configurationAttributes": {
"launch": {
"required": [],