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.

InstrumentationHelper.HasPdb always returns false for deterministic source paths

See original GitHub issue

When /p:DeterministicSourcePaths=true is set, InstrumentationHelper.HasPdb looks for PDB files in the wrong location. These files are never found, so instrumentation is not performed.

https://github.com/tonerdo/coverlet/blob/062b907735901bdf3ad9d4d40953f53a4fe3f364/src/coverlet.core/Helpers/InstrumentationHelper.cs#L74

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:43 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
clairernovotnycommented, Apr 9, 2020

I’m not sure about it…at the moment we have 3 drivers(.net tool,msbuild,collectors) and not all version supports all features, have single version could confuse users.

FWIW, I think it could be okay to keep drivers at the same version long as what’s in each is documented somewhere. If they all tend to rely on an underlying core library, then that could be what drives the main version. Totally up to you though of course.

1reaction
MarcoRossignolicommented, Apr 19, 2020

Plan

Read more comments on GitHub >

github_iconTop Results From Across the Web

InstrumentationHelper.HasPdb always returns false for ...
This map defines mapping that the compiler applies to all paths used in the compilation (source paths, pdb path, etc.). This is an...
Read more >
c# - Get source file location with DeterministicSourcePaths ...
So it seems that determinist paths are injected into the compiler functionality supporting CallerFilePath yielding this behavior. I need the ...
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