Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

310
Visualizações
How to debug any file in node JS without specifying the file name in launch,json

Check this image

I want to debug both workout.js and test.js but vscode is debugging only the workout.js how do I set the file name dynamic. so I can debug any js file with one launch.json config

Like "program": "${workspaceFolder}/${currentFileName}.js",

about 4 years ago · Juan Pablo Isaza
3 Respostas
Responde à pergunta

0

Take a look at the official documentation about variable substitution in Debugging and Task configuration files, there are a few that can be used to achieve what you want.

about 4 years ago · Juan Pablo Isaza Relatório

0

The easy way is to add multiple settings inside your single lunch config file. and whenever you want to debug any then choose that name while debugging

about 4 years ago · Juan Pablo Isaza Relatório

0

Reffer this for more details Documnetaion

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Node js",
            "program": "${file}",
            "request": "launch",
            "skipFiles": ["<node_internals>/**"],
            "type": "node"
        }
    ]
}
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda