VS Code debugging is working
This commit is contained in:
parent
5188570f26
commit
97909483d4
24
.vscode/launch.json
vendored
24
.vscode/launch.json
vendored
@ -5,18 +5,24 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Launch Chrome",
|
"name": "Debug React App",
|
||||||
"request": "launch",
|
|
||||||
"type": "chrome",
|
"type": "chrome",
|
||||||
"url": "http://localhost:3000",
|
"request": "launch",
|
||||||
"webRoot": "${workspaceFolder}"
|
"url": "http://localhost:3001",
|
||||||
|
"webRoot": "${workspaceFolder}/src",
|
||||||
|
"runtimeExecutable": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
|
||||||
|
"runtimeArgs": [
|
||||||
|
"--remote-debugging-port=9222",
|
||||||
|
"--user-data-dir=C:\\ChromeDebug"
|
||||||
|
],
|
||||||
|
"preLaunchTask": "Start All"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "pwa-chrome",
|
"name": "Attach to Chrome",
|
||||||
"request": "launch",
|
"type": "chrome",
|
||||||
"name": "Launch Chrome against localhost",
|
"request": "attach",
|
||||||
"url": "http://localhost:3000",
|
"port": 9222,
|
||||||
"webRoot": "${workspaceFolder}"
|
"webRoot": "${workspaceFolder}/src"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
47
.vscode/tasks.json
vendored
Normal file
47
.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Start Proxy",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "./proxy.cmd",
|
||||||
|
"isBackground": true,
|
||||||
|
"problemMatcher": {
|
||||||
|
"pattern": {
|
||||||
|
"regexp": ".*"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": "^.*",
|
||||||
|
"endsPattern": "listening on|started|ready"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Start CRA",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "npm start",
|
||||||
|
"isBackground": true,
|
||||||
|
"options": {
|
||||||
|
"env": {
|
||||||
|
"BROWSER": "none"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"problemMatcher": {
|
||||||
|
"pattern": {
|
||||||
|
"regexp": ".*"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": "^.*",
|
||||||
|
"endsPattern": "Compiled successfully|webpack compiled"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Start All",
|
||||||
|
"dependsOn": ["Start Proxy", "Start CRA"],
|
||||||
|
"dependsOrder": "parallel"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user