question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VSCode Debugging not showing logs

See original GitHub issue

Describe the bug If you debug an js file in VSCode with signale logs, they don’t show up in the debug output

To Reproduce Steps to reproduce the behavior. Simple package with just signale as dependencie

const signale = require('signale');

signale.info('foo');
console.log('bar')

‘bar’ gets logged, ‘foo’ not Expected behavior A clear and concise description of what you expected to happen. i don’t see any logs. Loggin to a file stream works

Screenshots If applicable, add screenshots to help explain your problem.

Technical Info (please complete the following information)

  • OS: Windows 10
  • Signale Version: 1.1.0
  • Node.js Version: 9.6.1 & 10.1.0

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
Haschikekscommented, May 24, 2018

EDIT: using the “console”: “integratedTerminal” launch option shows all the logs.

ok i think i found the issue: https://github.com/Microsoft/vscode/issues/19750 VSCode is not using the process.stdout.write but rather the debug protocol to show the debug messages. This way any log from signale is not showing up in the normal ‘Debug Console’ of VSCode.

0reactions
MartinJohnscommented, Dec 19, 2020

Having the same issue more than two years later again and finding this issue… I guess the answer is no. 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code not showing console logs - Stack Overflow
If you are running in the debug mode, In Visual Studio Code then only logs will be displayed.In the menu bar there is...
Read more >
Debugging in Visual Studio Code
One of the great things in Visual Studio Code is debugging support. Set breakpoints, step-in, inspect variables and more.
Read more >
Cannot see console.log on debug console #117560 - GitHub
Issue Type: Bug Open any JS file Run console.log("hello"); there is no output in debug console VS Code version: Code 1.53.2 (622cb03, 202......
Read more >
Using console.log() debugging in Visual Studio Code
In the video I use a project I have open with a launch.json file already defined, which means it opens the correct URL...
Read more >
Using console.log() debugging in Visual Studio Code
Using the new in-built JavaScript debugger in Visual Studio code you can use the browser developer tools Console right inside the editor.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found