vscode debugging integration added + README updated

This commit is contained in:
Luis Hebendanz 2023-09-22 18:44:05 +02:00 committed by Mic92
parent 9dca1a4672
commit b86e02e183
2 changed files with 40 additions and 0 deletions

16
pkgs/clan-cli/.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,16 @@
{
// 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": "Clan Webui",
"type": "python",
"request": "launch",
"module": "clan_cli.webui",
"justMyCode": true,
"args": [ "--reload", "--no-open", "--log-level", "debug" ]
}
]
}

View File

@ -28,6 +28,30 @@ To start a local developement environment instead, use the `--dev` flag:
This will spawn two webserver, a python one to for the api and a nodejs one that rebuilds the ui on the fly.
## Run webui directly
Useful for vscode run and debug option
```bash
python -m clan_cli.webui --reload --no-open
```
Add this `launch.json` to your .vscode directory to have working breakpoints in your vscode editor.
```json
{
"version": "0.2.0",
"configurations": [
{
"name": "Clan Webui",
"type": "python",
"request": "launch",
"module": "clan_cli.webui",
"justMyCode": true,
"args": [ "--reload", "--no-open", "--log-level", "debug" ]
}
]
}
```
## Run locally single-threaded for debugging
By default tests run in parallel using pytest-parallel.