Created
July 23, 2019 07:44
-
-
Save zxhfighter/6dc83a1b2c3fdf6833ea0ffea136b0e2 to your computer and use it in GitHub Desktop.
调试 python 和 flask 文件
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Python: 当前文件", | |
"type": "python", | |
"request": "launch", | |
"program": "${file}", | |
"console": "integratedTerminal" | |
}, | |
{ | |
"name": "Python: Flask", | |
"type": "python", | |
"request": "launch", | |
"module": "flask", | |
"env": { | |
"FLASK_APP": "./backend/flasky.py", | |
"FLASK_ENV": "development", | |
"ENV_NAME": ".env-dev", | |
"FLASK_DEBUG": "1" | |
}, | |
"args": ["run", "--no-debugger", "--no-reload"], | |
"jinja": true | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment