added to launch.json example

This commit is contained in:
John Lancaster
2024-08-09 17:56:34 -05:00
parent 24dd2bfd3a
commit f6e7069449

View File

@@ -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)
],
}
]
}
```