|
1 | 1 | { |
2 | | - // Use IntelliSense to learn about possible attributes. |
3 | | - // Hover to view descriptions of existing attributes. |
4 | | - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
| 2 | + // Use IntelliSense to learn about possible attributes. |
| 3 | + // Hover to view descriptions of existing attributes. |
| 4 | + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
5 | 5 |
|
6 | | - // pytest: https://stackoverflow.com/questions/70259564/how-to-debug-the-current-python-test-file-with-pytest-in-vs-code |
| 6 | + // pytest: https://stackoverflow.com/questions/70259564/how-to-debug-the-current-python-test-file-with-pytest-in-vs-code |
7 | 7 |
|
8 | | - "version": "0.2.0", |
9 | | - "configurations": [ |
10 | | - { |
11 | | - "name": "Python: Current File", |
12 | | - "type": "python", |
13 | | - "request": "launch", |
14 | | - "program": "${file}", |
15 | | - "console": "integratedTerminal", |
16 | | - "cwd": "${fileDirname}", |
17 | | - // "args": ["-i", "response.xml", "-o", "response.csv"], |
18 | | - // "args": ["-d", "/Volumes/Data"], |
19 | | - // "args": ["-f", "menubar.dmg"], |
20 | | - // "args": ["-h"], |
21 | | - // "env": { |
22 | | - // "CREDS": "", |
23 | | - // } |
24 | | - }, |
25 | | - { |
26 | | - "name": "Python: Django", |
27 | | - "type": "python", |
28 | | - "request": "launch", |
29 | | - "program": "${workspaceFolder}/manage.py", |
30 | | - "console": "integratedTerminal", |
31 | | - "args": ["runserver"], |
32 | | - "django": true, |
33 | | - "justMyCode": true |
34 | | - }, |
35 | | - { |
36 | | - "name": "Python: Flask", |
37 | | - "type": "python", |
38 | | - "request": "launch", |
39 | | - "program": "${workspaceFolder}/.venv/bin/flask", |
40 | | - "console": "integratedTerminal", |
41 | | - "args": [ |
42 | | - "run", |
43 | | - "--host", |
44 | | - "0.0.0.0", |
45 | | - "--port", |
46 | | - "8000" |
47 | | - ], |
48 | | - "justMyCode": true |
49 | | - }, |
50 | | - { |
51 | | - "name": "Python: Flet", |
52 | | - "type": "python", |
53 | | - "request": "launch", |
54 | | - "program": "${workspaceFolder}/.venv/bin/flet", |
55 | | - "console": "integratedTerminal", |
56 | | - "args": [ |
57 | | - "run", |
58 | | - "main.py", |
59 | | - "-d" |
60 | | - ], |
61 | | - "env": { |
62 | | - "PYDEVD_DISABLE_FILE_VALIDATION": "1", |
63 | | - }, |
64 | | - "justMyCode": true |
65 | | - }, |
66 | | - { |
67 | | - "name": "Python: Debug Tests", |
68 | | - "type": "python", |
69 | | - "request": "launch", |
70 | | - "module": "pytest", |
71 | | - "args": [ |
72 | | - "${file}" |
73 | | - ], |
74 | | - "console": "integratedTerminal" |
75 | | - }, |
76 | | - { |
77 | | - "name": "Node: Current File", |
78 | | - "type": "node", |
79 | | - "request": "launch", |
80 | | - "program": "${file}", |
81 | | - "console": "integratedTerminal", |
82 | | - "skipFiles": [ |
83 | | - "<node_internals>/**" |
84 | | - ], |
85 | | - // "runtimeExecutable": "${env:HOME}/.n/bin/node" |
86 | | - } |
87 | | - ], |
88 | | - "ansible.python.interpreterPath": "${workspaceFolder}/.venv/bin/python" |
| 8 | + "version": "0.2.0", |
| 9 | + "configurations": [ |
| 10 | + { |
| 11 | + "name": "Python: Current File", |
| 12 | + "type": "debugpy", |
| 13 | + "request": "launch", |
| 14 | + "program": "${file}", |
| 15 | + "console": "integratedTerminal", |
| 16 | + "cwd": "${fileDirname}", |
| 17 | + "pythonArgs": [ |
| 18 | + "-Xfrozen_modules=off" |
| 19 | + ], |
| 20 | + "env": { |
| 21 | + "PYDEVD_DISABLE_FILE_VALIDATION": "1" |
| 22 | + } |
| 23 | + }, |
| 24 | + { |
| 25 | + "name": "Python: Debug Tests", |
| 26 | + "type": "debugpy", |
| 27 | + "request": "launch", |
| 28 | + "module": "pytest", |
| 29 | + "args": [ |
| 30 | + "${file}" |
| 31 | + ], |
| 32 | + "console": "integratedTerminal", |
| 33 | + "env": { |
| 34 | + "PWDEBUG": "1" |
| 35 | + } |
| 36 | + }, |
| 37 | + ] |
89 | 38 | } |
0 commit comments