vscode debugging integration added + README updated
This commit is contained in:
parent
9dca1a4672
commit
b86e02e183
16
pkgs/clan-cli/.vscode/launch.json
vendored
Normal file
16
pkgs/clan-cli/.vscode/launch.json
vendored
Normal 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" ]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -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.
|
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
|
## Run locally single-threaded for debugging
|
||||||
|
|
||||||
By default tests run in parallel using pytest-parallel.
|
By default tests run in parallel using pytest-parallel.
|
||||||
|
Loading…
Reference in New Issue
Block a user