create launch.json config

This commit is contained in:
chenhe 2024-02-05 16:59:18 +08:00
parent 59909b5ca7
commit 1294ce4041

30
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,30 @@
{
// 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": [
{
// set root directory to api/ folder
"cwd": "${workspaceFolder}/api",
"name": "Python: Flask",
"type": "python",
"request": "launch",
"module": "flask",
"env": {
"FLASK_APP": "app.py",
"FLASK_DEBUG": "1",
"GEVENT_SUPPORT": "True"
},
"args": [
"run",
"--no-debugger",
"--no-reload",
"--host=0.0.0.0",
"--port=5001"
],
"jinja": true,
"justMyCode": true
}
]
}