Skip to content

Debug Console ignores logging of empty lines #52028

@kayahr

Description

@kayahr
  • VSCode Version: 1.24.1
  • OS Version: Debian GNU/Linux 9.4

Steps to Reproduce:

  1. Write a small Node application like this:
console.log("Line 1");
console.log();
console.log("Line 3");
console.log("");
console.log("Line 5");
console.log(" ");
console.log("Line 7");

2.Launch it in the terminal and see the correct output:

console

  1. Launch it in the debugger and see the wrong output:

debug

So when running in the debugger then console.log() without parameters and console.log("") with an empty string parameter does not generate an empty output line. But logging a single space character works.

Does this issue occur when all extensions are disabled?: Yes

This problem is similar to #24308 I reported last year. In this issue I reported that empty lines where sometimes ignored. Now they are always ignored. So looks like the bug wasn't fixed properly.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions