Skip to content

Preserve Documents debug info #965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 5, 2025

Conversation

sbomer
Copy link
Contributor

@sbomer sbomer commented Feb 18, 2025

Upstreaming the change from dotnet#270.

Currently when writing PDBs, Document debug info is only preserved when referenced from a sequence point. It should be preserved always, because Documents don't necessarily correspond to any sequence points (for example, C# code that contains an interface definition with no implementation).

This will preserve the Document debug info always.

Fixes dotnet/runtime#112049
Fixes dotnet/runtime#111138
Fixes #839

To remove reference to RefSafetyRulesAttribute
To avoid references to System.Runtime
@jbevain jbevain merged commit 3136847 into jbevain:master Mar 5, 2025
2 checks passed
@jbevain
Copy link
Owner

jbevain commented Mar 5, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants