Compiler generates debug symbol document record 'unknown' #11195
Labels
Area-Debug
stepping, debug points, stacks and more
Bug
Impact-Medium
(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Milestone
Inlining (some complicated) code from another assembly causes the pdb symbols to contain a reference to a file called 'unknown'.
This breaks code coverage tools like coverlet, because it skips the assembly when it can't find an on-disk file called 'unknown'.
Repro steps
I've created a repo which does these steps and put it in github: https://github.com/marklam/FSharpPdbUnknown
(If a zip is preferred, https://github.com/marklam/FSharpPdbUnknown/archive/master.zip should do it)
Expected behavior
The documents in the PDB (which the referenced project can automatically list) should only contain 'Program.fs'
Actual behavior
The documents include 'Program.fs' and 'unknown'
Known workarounds
Dropping an empty file called 'unknown' in the source directory will make Coverlet happy about producing coverage for the assembly.
Related information
The text was updated successfully, but these errors were encountered: