Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

467
Vistas
Change flask running port in VScode debugger

I do have a flask application running on port 8000 because i have logstash running on port 5000.

app.run(debug=True, host='0.0.0.0', port=8000)

i can run my app successfully. but when i use VScode debugger it throws

OSError: [Errno 98] Address already in use

because the debugger tries to run my app on port 5000. i tried editing .vscode/launch.json and set "port": 8000 inside configurations but the error still the same. how can i tell the VScode to run my app with debugger on another port?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Add args key to your debug configuration and set the port there:

https://code.visualstudio.com/docs/python/debugging#_set-configuration-options

{
    "name": "Python: startup.py",
    "type": "python",
    "request": "launch",
    "program": "${workspaceFolder}/startup.py",
    "args" : ["run", "--port", "8000"]
}
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda