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

249
Visualizações
Can not get VS Code to output console.log to chrome or any browser

I have perused Stack Overflow and other sites but cannot seem to find my specific problem I have all levels checked off- verbose, info, warnings, errors

There is nothing in the filter section yet I still cannot get any output from console.log. It was working fine until yesterday I must have done something I'm new I don't know what the hell I'm doing I suppose but I'm frustrated I've been two days trying to figure out what this is.

I've included a screenshot, if that helps: console.log problem

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

0

It is not a VSCode problem. You are opening the script1.js file directly from the browser.

Make an HTML file in the same directory as your script1.js file

Put the following code:

  <!DOCTYPE html>
  <html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Document</title>
  </head>
  <body>
  </body>
  <script src="script1.js"></script>
  </html>

Then execute the HTML file in the browser, then the JS code will execute.

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