-
Notifications
You must be signed in to change notification settings - Fork 2
/
launch.json
34 lines (34 loc) · 1.25 KB
/
launch.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
// https://code.visualstudio.com/docs/python/debugging
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
},
{
// https://code.visualstudio.com/docs/python/testing#_debug-tests
"name": "Debug tests",
"type": "python",
"request": "launch",
// avoid purpose debug-test when tests/subfolders are present
"purpose": [
"debug-test"
],
"program": "${file}",
"console": "integratedTerminal", // problem with zsh https://github.com/microsoft/vscode-python/issues/10398#issuecomment-597454312
"justMyCode": true,
"env": {
// when using pytest-cov need to deactivate the coverage
// https://stackoverflow.com/a/67185092
"PYTEST_ADDOPTS": "--no-cov"
}
}
]
}