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

428
Visualizações
How to get VS Code to output the line number of errors while running a Node.js program from Run menu?

I am running a JavaScript program (Node.js) from VS Code with Ctrl+F5 or F5 (Run Without Debugging or Start Debugging), and execution stops because of an error in my code. The DEBUG CONSOLE of VS Code shows me the error and the name of the affected source file, but not the line number where the error occurred in the source file. It says instead No debugger available, can not send 'variables'.

E.g. see the error at line 7 of the program in the screenshot.

Screenshot 1

How can I get VS Code to show me the line number where an error has occurred, after running the program from the Run menu?

I noticed that I can have it if I run my program from the VS Code TERMINAL instead. See this screenshot.

enter image description here

over 4 years ago · Santiago Trujillo
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