|
932 | 932 | "name": "Python Experimental: Terminal (integrated)",
|
933 | 933 | "type": "pythonExperimental",
|
934 | 934 | "request": "launch",
|
935 |
| - "stopOnEntry": true, |
936 | 935 | "pythonPath": "^\"\\${config:python.pythonPath}\"",
|
937 | 936 | "program": "^\"\\${file}\"",
|
938 |
| - "cwd": "", |
| 937 | + "cwd": "^\"\\${workspaceFolder}\"", |
939 | 938 | "console": "integratedTerminal",
|
940 | 939 | "env": {},
|
941 | 940 | "envFile": "^\"\\${workspaceFolder}/.env\"",
|
|
950 | 949 | "name": "Python Experimental: Terminal (external)",
|
951 | 950 | "type": "pythonExperimental",
|
952 | 951 | "request": "launch",
|
953 |
| - "stopOnEntry": true, |
954 | 952 | "pythonPath": "^\"\\${config:python.pythonPath}\"",
|
955 | 953 | "program": "^\"\\${file}\"",
|
956 |
| - "cwd": "", |
| 954 | + "cwd": "^\"\\${workspaceFolder}\"", |
957 | 955 | "console": "externalTerminal",
|
958 | 956 | "env": {},
|
959 | 957 | "envFile": "^\"\\${workspaceFolder}/.env\"",
|
960 | 958 | "debugOptions": [],
|
961 | 959 | "internalConsoleOptions": "neverOpen"
|
962 | 960 | }
|
| 961 | + }, |
| 962 | + { |
| 963 | + "label": "Python Experimental: Django", |
| 964 | + "description": "%python.snippet.launch.django.description%", |
| 965 | + "body": { |
| 966 | + "name": "Django", |
| 967 | + "type": "python", |
| 968 | + "request": "launch", |
| 969 | + "pythonPath": "^\"\\${config:python.pythonPath}\"", |
| 970 | + "program": "^\"\\${workspaceFolder}/manage.py\"", |
| 971 | + "cwd": "^\"\\${workspaceFolder}\"", |
| 972 | + "console": "integratedTerminal", |
| 973 | + "internalConsoleOptions": "neverOpen", |
| 974 | + "args": [ |
| 975 | + "runserver", |
| 976 | + "--noreload", |
| 977 | + "--nothreading" |
| 978 | + ], |
| 979 | + "env": {}, |
| 980 | + "envFile": "^\"\\${workspaceFolder}/.env\"", |
| 981 | + "debugOptions": [] |
| 982 | + } |
963 | 983 | }
|
964 | 984 | ],
|
965 | 985 | "configurationAttributes": {
|
|
1052 | 1072 | "request": "launch",
|
1053 | 1073 | "pythonPath": "${config:python.pythonPath}",
|
1054 | 1074 | "program": "${file}",
|
1055 |
| - "cwd": "", |
| 1075 | + "cwd": "${workspaceFolder}", |
1056 | 1076 | "console": "integratedTerminal",
|
1057 | 1077 | "env": {},
|
1058 | 1078 | "envFile": "${workspaceFolder}/.env",
|
1059 | 1079 | "debugOptions": [],
|
1060 | 1080 | "internalConsoleOptions": "neverOpen"
|
1061 | 1081 | },
|
| 1082 | + { |
| 1083 | + "name": "Python Experimental: Django", |
| 1084 | + "type": "pythonExperimental", |
| 1085 | + "request": "launch", |
| 1086 | + "pythonPath": "${config:python.pythonPath}", |
| 1087 | + "program": "${workspaceFolder}/manage.py", |
| 1088 | + "cwd": "${workspaceFolder}", |
| 1089 | + "console": "integratedTerminal", |
| 1090 | + "env": {}, |
| 1091 | + "envFile": "${workspaceFolder}/.env", |
| 1092 | + "args": [ |
| 1093 | + "runserver", |
| 1094 | + "--noreload", |
| 1095 | + "--nothreading" |
| 1096 | + ], |
| 1097 | + "debugOptions": [], |
| 1098 | + "internalConsoleOptions": "neverOpen" |
| 1099 | + }, |
1062 | 1100 | {
|
1063 | 1101 | "name": "Python Experimental: Current File (External Terminal)",
|
1064 | 1102 | "type": "pythonExperimental",
|
1065 | 1103 | "request": "launch",
|
1066 | 1104 | "pythonPath": "${config:python.pythonPath}",
|
1067 | 1105 | "program": "${file}",
|
1068 |
| - "cwd": "", |
| 1106 | + "cwd": "${workspaceFolder}", |
1069 | 1107 | "console": "externalTerminal",
|
1070 | 1108 | "env": {},
|
1071 | 1109 | "envFile": "${workspaceFolder}/.env",
|
|
0 commit comments