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+ "version" : " 0.2.0" ,
6+ "configurations" : [
7+ {
8+ "name" : " Python: runserver.py" ,
9+ "type" : " python" ,
10+ "request" : " launch" ,
11+ "program" : " ${workspaceFolder}/runserver.py" ,
12+ },
13+ {
14+ "name" : " Python: Current File" ,
15+ "type" : " python" ,
16+ "request" : " launch" ,
17+ "program" : " ${file}" ,
18+ "env" : {
19+ "FLASK_ENV" : " development"
20+ }
21+ },
22+ {
23+ "name" : " Python: Attach" ,
24+ "type" : " python" ,
25+ "request" : " attach" ,
26+ "localRoot" : " ${workspaceFolder}" ,
27+ "remoteRoot" : " ${workspaceFolder}" ,
28+ "port" : 3000 ,
29+ "secret" : " my_secret" ,
30+ "host" : " localhost"
31+ },
32+ {
33+ "name" : " Python: Terminal (integrated)" ,
34+ "type" : " python" ,
35+ "request" : " launch" ,
36+ "program" : " ${file}" ,
37+ "console" : " integratedTerminal"
38+ },
39+ {
40+ "name" : " Python: Terminal (external)" ,
41+ "type" : " python" ,
42+ "request" : " launch" ,
43+ "program" : " ${file}" ,
44+ "console" : " externalTerminal"
45+ },
46+ {
47+ "name" : " Python: Django" ,
48+ "type" : " python" ,
49+ "request" : " launch" ,
50+ "program" : " ${workspaceFolder}/manage.py" ,
51+ "args" : [
52+ " runserver" ,
53+ " --noreload" ,
54+ " --nothreading"
55+ ],
56+ "debugOptions" : [
57+ " RedirectOutput" ,
58+ " Django"
59+ ]
60+ },
61+ {
62+ "name" : " Python: Flask (0.11.x or later)" ,
63+ "type" : " python" ,
64+ "request" : " launch" ,
65+ "module" : " flask" ,
66+ "env" : {
67+ "FLASK_APP" : " runserver.py" ,
68+ "FLASK_ENV" : " development"
69+ },
70+ "args" : [
71+ " run"
72+ ]
73+ },
74+ {
75+ "name" : " Python: Module" ,
76+ "type" : " python" ,
77+ "request" : " launch" ,
78+ "module" : " module.name"
79+ },
80+ {
81+ "name" : " Python: Pyramid" ,
82+ "type" : " python" ,
83+ "request" : " launch" ,
84+ "args" : [
85+ " ${workspaceFolder}/development.ini"
86+ ],
87+ "debugOptions" : [
88+ " RedirectOutput" ,
89+ " Pyramid"
90+ ]
91+ },
92+ {
93+ "name" : " Python: Watson" ,
94+ "type" : " python" ,
95+ "request" : " launch" ,
96+ "program" : " ${workspaceFolder}/console.py" ,
97+ "args" : [
98+ " dev" ,
99+ " runserver" ,
100+ " --noreload=True"
101+ ]
102+ },
103+ {
104+ "name" : " Python: All debug Options" ,
105+ "type" : " python" ,
106+ "request" : " launch" ,
107+ "pythonPath" : " ${config:python.pythonPath}" ,
108+ "program" : " ${file}" ,
109+ "module" : " module.name" ,
110+ "env" : {
111+ "VAR1" : " 1" ,
112+ "VAR2" : " 2"
113+ },
114+ "envFile" : " ${workspaceFolder}/.env" ,
115+ "args" : [
116+ " arg1" ,
117+ " arg2"
118+ ],
119+ "debugOptions" : [
120+ " RedirectOutput"
121+ ]
122+ }
123+ ]
124+ }
0 commit comments