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.

Source code downloaded via the debuggers sourceRequest creates lots of duplicate open files across debug sessions

See original GitHub issue

If I debug into a source file that is downloaded from the debugger (via sourceRequest) and then stop the debug session and repeat the same thing again, VS Code opens a second copy of the source (even though the name/contents are identical).

After a few debug sessions, I end up with this:

image

As far as I can tell, nothing is different about these files (besides the sourceReference) so I would expect VS Code to reuse the same existing file the next time they’re required (I actually thought this is what it did in the past, though I’m not certain).

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bpaserocommented, Sep 11, 2021

@TylerLeonhardt yup, IHistoryService#removeFromHistory.

0reactions
TylerLeonhardtcommented, Sep 11, 2021

As far as I know, something like this isn’t supported, right @bpasero?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate source file displays when debuggibng with ...
However, the red dot with the breakpoint stays in the original copy of the file. When debugging is over, the second copy stays...
Read more >
Without any changes to source files, "Edits were made which ...
This problem happens when changes to source code are made: ... updates from design-time build are interpreted as changes made during the debugging...
Read more >
Data source fields - Product Documentation | ServiceNow
Create time cards and log time through Time Sheet Portal ... Enable session debugging for AI Search ... Create a File type data...
Read more >
Debugging with GDB - sourceware.org
This file describes GDB, the GNU symbolic debugger. ... get multiple executables into a debugging session via the add-inferior and clone-inferior commands.
Read more >
Could not load source: SourceRequest not supported
... the current working directory to the executable's and then add the appropriate source file map as written in the last post of...
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