diff --git a/README.md b/README.md index f165cd7..2f799bd 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,20 @@ Use with VSCode's debugger using a `launch.json` file. "request": "launch", "module": "appdaemon", "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) + ], + } ] } ```