VS Code debugging is working
This commit is contained in:
parent
5188570f26
commit
97909483d4
48
.vscode/launch.json
vendored
48
.vscode/launch.json
vendored
@ -1,22 +1,28 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Launch Chrome",
|
||||
"request": "launch",
|
||||
"type": "chrome",
|
||||
"url": "http://localhost:3000",
|
||||
"webRoot": "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
"type": "pwa-chrome",
|
||||
"request": "launch",
|
||||
"name": "Launch Chrome against localhost",
|
||||
"url": "http://localhost:3000",
|
||||
"webRoot": "${workspaceFolder}"
|
||||
}
|
||||
]
|
||||
}
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug React App",
|
||||
"type": "chrome",
|
||||
"request": "launch",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"name": "Attach to Chrome",
|
||||
"type": "chrome",
|
||||
"request": "attach",
|
||||
"port": 9222,
|
||||
"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