🚀 feat(launch.json): add configuration for debugging frontend in Chrome

The new configuration allows for debugging the frontend in Chrome by launching the application on http://localhost:3000/* and setting the webRoot to the frontend directory. This will enable developers to debug the frontend code more efficiently. The existing configuration for debugging the backend has been renamed to "Debug Backend" for better clarity. The "justMyCode" property has been set to true to exclude external libraries from debugging.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-09 14:19:04 -03:00
commit eac5057d4f

11
.vscode/launch.json vendored
View file

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