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.

New source link and embedded sources support not fully working

See original GitHub issue

It appears that the source linking and embedded sources support added in #405 might have some problems.

Using the FodyCecil release that incorporates those changes (since beta7 isn’t out yet), I tested that my original repro was now working correctly. However, after trying it with a more complex assembly, I’m seeing problems with the resulting PDB.

I’ve updated my https://github.com/bording/SourceLinkProblem repo to demonstrate what I’m seeing. I’ve included both embedded source and source-linked versions of the test assembly, because the behavior seems to be slightly different.

The two new batch files, repro-rabbit-embedded.bat and repro-rabbit-sourcelinked.bat can be used to run the scenarios. I’ve also included output-embedded.txt and output-sourcelinked.txt to show the results of running the batch files.

For the embedded assembly, it starts out with 25 embedded files, but after being run through cecil, 8 of the documents have lost their embedded source.

For the source-linked version, the source link json file is missing, so all 25 of the documents no longer have any information.

CC: @SimonCropp

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jbevaincommented, Jul 19, 2017

That’s fixed in #432. Thanks for the repro!

0reactions
bordingcommented, Jun 24, 2017

@jbevain Is there anything else I can do to help investigate this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does SourceLink not work for embedded pdb files? #798
Before I hear back that they should be in snupkg packages, I need to hear back on whether they are supported with the...
Read more >
Source Link and .NET libraries
Source Link is a technology that enables source code debugging of .NET assemblies from NuGet by developers. Source Link executes when ...
Read more >
Embedding C# sources in PDB with new csproj
Can anyone confirm that I haven't missed anything and that build support for /embed is currently lacking? Is there an issue for this...
Read more >
Link /SOURCELINK option seems to do nothing
We are using SourceLink with c# projects and it is working just fine. When we try to use it on C++ projects the...
Read more >
Exploring .NET Core's SourceLink - Stepping into the ...
In Visual Studio 2017 I confirm that SourceLink is enabled. This is the Portable PDB version of SourceLink, not the "SourceLink 1.0" that...
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