8000 add launch.json to support debugging in flask · vpython/flaskHost@f3bdd92 · GitHub
[go: up one dir, main page]

Skip to content

Commit f3bdd92

Browse files
committed
add launch.json to support debugging in flask
1 parent 79750b4 commit f3bdd92

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@ bower_components
55
/venv
66
__pycache__/
77
*~
8-
/.vscode/
9-
/src/.vscode
108
/src/flask_secret.py
119
# please never check svc.json into the repo!
1210
svc.json
1311
foo.py
1412
.flaskenv
15-

.vscode/launch.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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: Flask",
9+
"type": "python",
10+
"request": "launch",
11+
"module": "flask",
12+
"python": "${workspaceFolder}/venv/bin/python",
13+
"env": {
14+
"FLASK_APP": "main.py",
15+
"FLASK_DEBUG": "1"
16+
},
17+
"args": [
18+
"run",
19+
"--no-debugger",
20+
"--no-reload"
21+
],
22+
"jinja": true,
23+
"justMyCode": true
24+
}
25+
]
26+
}

0 commit comments

Comments
 (0)
0