From eac5057d4f273b54c5bc4cda6f7e5b116adb0373 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 9 Jun 2023 14:19:04 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20feat(launch.json):=20add=20confi?= =?UTF-8?q?guration=20for=20debugging=20frontend=20in=20Chrome=20The=20new?= =?UTF-8?q?=20configuration=20allows=20for=20debugging=20the=20frontend=20?= =?UTF-8?q?in=20Chrome=20by=20launching=20the=20application=20on=20http://?= =?UTF-8?q?localhost:3000/*=20and=20setting=20the=20webRoot=20to=20the=20f?= =?UTF-8?q?rontend=20directory.=20This=20will=20enable=20developers=20to?= =?UTF-8?q?=20debug=20the=20frontend=20code=20more=20efficiently.=20The=20?= =?UTF-8?q?existing=20configuration=20for=20debugging=20the=20backend=20ha?= =?UTF-8?q?s=20been=20renamed=20to=20"Debug=20Backend"=20for=20better=20cl?= =?UTF-8?q?arity.=20The=20"justMyCode"=20property=20has=20been=20set=20to?= =?UTF-8?q?=20true=20to=20exclude=20external=20libraries=20from=20debuggin?= =?UTF-8?q?g.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index b0a48cdc6..27ab4603f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,7 +1,7 @@ { "configurations": [ { - "name": "Python: FastAPI", + "name": "Debug Backend", "type": "python", "request": "launch", "module": "uvicorn", @@ -14,7 +14,7 @@ "debug" ], "jinja": true, - "justMyCode": false + "justMyCode": true }, { "name": "Python: Remote Attach", @@ -30,6 +30,13 @@ "remoteRoot": "." } ] + }, + { + "name": "Debug Frontend", + "type": "chrome", + "request": "launch", + "url": "http://localhost:3000/*", + "webRoot": "${workspaceRoot}/src/frontend" } ] }