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

213
Vistas
Breakpoint not hit after upgrade of VS Code (after 1.57.1) when running mocha

I'm developing a API REST in JAVASCRIPT using KOA, and to test my routes I write integrated test launched with MOCHA.

I'm using VS Code for MAC

When debugging my test files I run my launch.js configuration

{
          "type": "node",
          "request": "launch",
          "name": "Mocha Current File",
          "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
          "args": [
              "--timeout",
              "999999",
              "--colors",
              "${file}"
          ],
          "env": {
          "NODE_ENV":"test",
          },
          "console": "internalConsole",
          "outputCapture": "std"
      },

which return this command in the terminal

/Users/ME/.nvm/versions/node/v16.6.0/bin/node ./node_modules/mocha/bin/_mocha --timeout 999999 --colors /Users/ME/MyProject/test/integration/test-to-check.test.js

And before the VS Code update (when using 1.57.1) all my breakpoint would have been hit without any problems every time I run my test, but after this version and without changing anything, my breakpoint wasn't hit anymore.

all version after 1.57.1 to 1.60.2

Then currently I need to lock my version of VS Code to 1.57.1 If I want to debug my test.

Here is the weird thing about this case :

  • none of my coworkers have this problems using the same projet, launch.js and VS Code version
  • If I run my other configuration which run all the test, sometime this launch configuration will work
  • The first run after launching VS Code will hit the breakpoint

I already tried to read/use the official documentation of VS Code about the new debugger process, but it didn't change anything.

After searching for every thread speaking about the subject, I'm short of idea

If someone have a solution on this case, it would be a great help.

Thank in advance !

Libraries version :

  • mocha : 9.0.3
  • node : 16.6.0 (work with all version after 12.6.3)
  • koa : 2.13.1
  • vs-code : 1.60.2
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