Skip to content

Instantly share code, notes, and snippets.

@zxhfighter
Created July 23, 2019 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zxhfighter/6dc83a1b2c3fdf6833ea0ffea136b0e2 to your computer and use it in GitHub Desktop.
Save zxhfighter/6dc83a1b2c3fdf6833ea0ffea136b0e2 to your computer and use it in GitHub Desktop.
调试 python 和 flask 文件
{
// 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