From f6e7069449552d39cc6f727ebd2775e4fb8e6d44 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Fri, 9 Aug 2024 17:56:34 -0500 Subject: [PATCH] added to launch.json example --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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) + ], + } ] } ```