From 97909483d46ae548fc06fe6b5303b75f3df87f2e Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Mon, 16 Feb 2026 18:24:05 +0000 Subject: [PATCH] VS Code debugging is working --- .vscode/launch.json | 48 +++++++++++++++++++++++++-------------------- .vscode/tasks.json | 47 ++++++++++++++++++++++++++++++++++++++++++++ proxy.cmd | 2 ++ 3 files changed, 76 insertions(+), 21 deletions(-) create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json index 9392a88..13849ce 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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}" - } - ] -} \ No newline at end of file + // 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" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..a3cb746 --- /dev/null +++ b/.vscode/tasks.json @@ -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" + } + ] +} diff --git a/proxy.cmd b/proxy.cmd index dd5d22f..468f52e 100644 --- a/proxy.cmd +++ b/proxy.cmd @@ -1,2 +1,4 @@ +@echo off cd ../e-suite.Proxy/ +echo ready docker compose up \ No newline at end of file