Skip to content

Commit 63c677f

Browse files
Add python args and disable debug file validation
1 parent 0bf3a0e commit 63c677f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.vscode/launch.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// Use IntelliSense to learn about possible attributes.
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
65
// pytest: https://stackoverflow.com/questions/70259564/how-to-debug-the-current-python-test-file-with-pytest-in-vs-code
7-
86
"version": "0.2.0",
97
"configurations": [
108
{
@@ -14,21 +12,26 @@
1412
"program": "${file}",
1513
"console": "integratedTerminal",
1614
"cwd": "${fileDirname}",
15+
"pythonArgs": [
16+
"-Xfrozen_modules=off"
17+
],
18+
"env": {
19+
"PYDEVD_DISABLE_FILE_VALIDATION": "1"
20+
}
1721
// "args": ["-i", "response.xml", "-o", "response.csv"],
1822
// "args": ["-d", "/Volumes/Data"],
1923
// "args": ["-f", "menubar.dmg"],
2024
// "args": ["-h"],
21-
// "env": {
22-
// "CREDS": "",
23-
// }
2425
},
2526
{
2627
"name": "Python: Django",
2728
"type": "python",
2829
"request": "launch",
2930
"program": "${workspaceFolder}/manage.py",
3031
"console": "integratedTerminal",
31-
"args": ["runserver"],
32+
"args": [
33+
"runserver"
34+
],
3235
"django": true,
3336
"justMyCode": true
3437
},

0 commit comments

Comments
 (0)