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

225
Vistas
How to debug 2 React apps in VS Code at once?

I need a compound debug profile in VS Code which allows debugging of two React (via CRA) apps, simultaneously. In fact, there will be multiple, smaller front-ends in this overall platform and I'll need to add more in the future.

I'm having no issues debugging multiple APIs with a single React front-end, in VS Code. My compounds work great...until adding a second React app.

Compound looks like this:

{
    "name": "ALL",
    "stopAll": true,
    "configurations": [
        //API
        "Auth API",
        "Log API",
        "Message API",
        "File API",
        "Search API",
        "Order API",
        //Web
        "Web 1",
        "Web 2"
    ]
}

The two React entries look like this:

{
    "name": "Web 1",
    "type": "chrome",
    "request": "launch",
    "url": "http://localhost:5500",
    "webRoot": "${workspaceRoot}/web1/src"
},
{
    "name": "Web 2",
    "type": "chrome",
    "request": "launch",
    "url": "http://localhost:5501",
    "webRoot": "${workspaceRoot}/web2/src"
}

Both work fine when doing the initial npm start in their respective terminals:

enter image description here enter image description here

However, only one opens in the browser (second tab is about:blank) and I see this when I flip back over to VS Code:

...

It's also not listed w/ the others in the debug dropdown, so it truly never attaches. Seems pretty straightforward - am I doing something wrong?

about 4 years ago · Juan Pablo Isaza
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