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