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.

Missing source information causing "identical line collapsing" in VsCode Debug Console

See original GitHub issue

Hello everyone,

TLDR: “Ominisharp console output” is not providing “Source Information” to VsCode https://github.com/microsoft/vscode/issues/141218

Description (using browser)

Yesterday we noticed that when debugging inside VsCode some code that tried to write to StdOut, these lines could be collapsed. This is the same things that you could see on Chromium-based browser. Remember for later that the first example is not grouping while the second one is. image

This can also be tempered with: image

In VsCode

Javascript: image

C# / F#: image image

Settings ?

We opened an issue on VsCode and we were hinted at: image

issue is … we did not knew or set it, meaning we were running with the default value all along and still have 2 different output on the same settings which lead us here:

From @weinand => https://github.com/microsoft/vscode/issues/141218

If console output provides source information (in the following screenshot on the right hand side), then lines are only collapsed if their source is identical. @isidorn is this correct? The following example shows that identical lines are collapsed in Node.js for the loop but not for individual console.log statements: image

If a debug extension does not provide source information, then identical are always collapsed. This seems to be the case for C# and F#.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
weinandcommented, Feb 8, 2022

I think we (VS Code) should consider not to collapse lines if there is no source info available.

@gregg-miskelly your opinion?

0reactions
tebecocommented, Feb 8, 2022

fine for me l, just double checking

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging configurations for Python apps in Visual Studio Code
Details on configuring the Visual Studio Code debugger for different Python ... Both computers: make sure that identical source code is available.
Read more >
Debugging in Visual Studio Code
The Run and Debug view displays all information related to running and debugging and has a top bar with debugging commands and configuration...
Read more >
User and Workspace Settings - Visual Studio Code
Changes to settings are applied by VS Code as you change them. Modified settings are indicated with a blue line similar to modified...
Read more >
February 2021 (version 1.54) - Visual Studio Code
collapseIdenticalLines , that controls if the Debug Console should collapse identical lines and show many occurrences with a badge. The default is to...
Read more >
July 2022 (version 1.70) - Visual Studio Code
VS Code now keeps folded ranges, even if the folding range is no longer part ... on the right to express the file's...
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