Skip to content
Snippets Groups Projects
Commit 705a48b8 authored by Anthony's avatar Anthony
Browse files
parent 7f41aa0f
No related branches found
No related tags found
No related merge requests found
{
// 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: Remote Attach",
"type": "python",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5678
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}
],
"justMyCode": true
}
]
}
\ No newline at end of file
......@@ -7,6 +7,12 @@ from Mirador_backend.routes import v1
from Mirador_backend.utils.config import getConfig
from Mirador_backend.utils.database import db
import debugpy
# TODO Update debugger
debugpy.listen(("0.0.0.0", 5678))
app = Flask(__name__)
api = Api(app)
docs = FlaskApiSpec(app)
......@@ -21,5 +27,11 @@ def shutdown_session(exception=None):
db.close()
if __name__ == '__main__':
app.run(debug=True)
print('COucou')
\ No newline at end of file
......@@ -4,3 +4,4 @@ services:
flask:
ports:
- $FLASK_PORT:5000
- 5678:5678 # DEBUG ports
......@@ -41,6 +41,7 @@ setup(
"python-dotenv",
# For a nice shell
"ipython",
'debugpy'
],
setup_requires=[""],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment