Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

224
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!