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

48
.vscode/launch.json vendored
View File

@ -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
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/
echo ready
docker compose up