VS Code debugging is working

This commit is contained in:
Colin Dawson 2026-02-16 18:24:05 +00:00
parent 5188570f26
commit 97909483d4
3 changed files with 76 additions and 21 deletions

24
.vscode/launch.json vendored
View File

@ -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
View 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"
}
]
}

View File

@ -1,2 +1,4 @@
@echo off
cd ../e-suite.Proxy/ cd ../e-suite.Proxy/
echo ready
docker compose up docker compose up