added to launch.json example
This commit is contained in:
14
README.md
14
README.md
@@ -23,8 +23,20 @@ Use with VSCode's debugger using a `launch.json` file.
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"module": "appdaemon",
|
"module": "appdaemon",
|
||||||
"justMyCode": true,
|
"justMyCode": true,
|
||||||
"args": "-c ../conf"
|
"args": "-c ../conf" // Expects the conf directory to be next to the appdaemon one
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "Pytest",
|
||||||
|
"type": "debugpy",
|
||||||
|
"request": "launch",
|
||||||
|
"module": "pytest",
|
||||||
|
"justMyCode": true,
|
||||||
|
"args": [
|
||||||
|
"${workspaceFolder}/tests",
|
||||||
|
"--maxfail=1", // Stop after the first failure
|
||||||
|
"-s" // Allow for interactive debugging (pdb)
|
||||||
|
],
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user