|
5 | 5 | "version": "0.2.0", |
6 | 6 | "configurations": [ |
7 | 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", |
| 8 | + "name": "Python Debugger: Flask", |
| 9 | + "type": "debugpy", |
64 | 10 | "request": "launch", |
65 | 11 | "module": "flask", |
66 | 12 | "env": { |
67 | | - "FLASK_APP": "hello_app.webapp" |
| 13 | + "FLASK_APP": "hello_app.webapp", |
| 14 | + "FLASK_DEBUG": "1" |
68 | 15 | }, |
69 | 16 | "args": [ |
70 | 17 | "run", |
71 | 18 | "--no-debugger", |
72 | | - "--no-reload" // Remove to auto-reload modified pages |
73 | | - ] |
74 | | - }, |
75 | | - { |
76 | | - "name": "Python: Module", |
77 | | - "type": "python", |
78 | | - "request": "launch", |
79 | | - "module": "module.name" |
80 | | - }, |
81 | | - { |
82 | | - "name": "Python: Pyramid", |
83 | | - "type": "python", |
84 | | - "request": "launch", |
85 | | - "args": [ |
86 | | - "${workspaceFolder}/development.ini" |
87 | | - ], |
88 | | - "debugOptions": [ |
89 | | - "RedirectOutput", |
90 | | - "Pyramid" |
91 | | - ] |
92 | | - }, |
93 | | - { |
94 | | - "name": "Python: Watson", |
95 | | - "type": "python", |
96 | | - "request": "launch", |
97 | | - "program": "${workspaceFolder}/console.py", |
98 | | - "args": [ |
99 | | - "dev", |
100 | | - "runserver", |
101 | | - "--noreload=True" |
102 | | - ] |
103 | | - }, |
104 | | - { |
105 | | - "name": "Python: All debug Options", |
106 | | - "type": "python", |
107 | | - "request": "launch", |
108 | | - "pythonPath": "${config:python.pythonPath}", |
109 | | - "program": "${file}", |
110 | | - "module": "module.name", |
111 | | - "env": { |
112 | | - "VAR1": "1", |
113 | | - "VAR2": "2" |
114 | | - }, |
115 | | - "envFile": "${workspaceFolder}/.env", |
116 | | - "args": [ |
117 | | - "arg1", |
118 | | - "arg2" |
| 19 | + "--no-reload" |
119 | 20 | ], |
120 | | - "debugOptions": [ |
121 | | - "RedirectOutput" |
122 | | - ] |
| 21 | + "jinja": true, |
| 22 | + "justMyCode": true |
123 | 23 | } |
124 | 24 | ] |
125 | 25 | } |
0 commit comments