VS Code: Add launch configuration for debugging tests

I just want to disable the external code skipping feature ("justMyCode")
but I seem to have to abandon the pytest integration to do so?
This commit is contained in:
Isaiah Odhner 2023-09-12 03:05:53 -04:00
parent bb8e968f6c
commit 370b497cc6

13
.vscode/launch.json vendored
View File

@ -47,6 +47,17 @@
"args": ["run", "--dev", "src.textual_paint.paint --clear-screen --restart-on-changes"],
"console": "integratedTerminal",
"justMyCode": false
}
},
{
"name": "Debug Tests",
"type": "python",
"request": "launch",
"program": ".venv/bin/pytest",
// "args": ["tests/test_snapshots.py::test_paint_open_dialog"],
"console": "integratedTerminal",
"justMyCode": false,
// If using pytest-cov in the future:
// "env": {"PYTEST_ADDOPTS": "--no-cov"}
}
]
}