-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[WIP] add source link support to portable pdbs #7726
Conversation
@ctaggart, |
tools/SourceLink.props
Outdated
@@ -0,0 +1,11 @@ | |||
<Project> | |||
<PropertyGroup> | |||
<SourceLinkCreate>true</SourceLinkCreate> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forcing it on with true is just to show that it works. The line should be removed before a merge.
@DamianEdwards @Eilon Has there been any discussion of doing this all-up on the ASP.NET packages? |
We should discuss. Whatever we do, we should do consistently in all the repos. |
@bricelam @Eilon @DamianEdwards the plan has been discussed in this issue: aspnet/Universe#131 (comment) |
Closing this pull request. It was just an example of how easy it is to add. |
What's preventing this from happening? |
@paulomorgado can you provide info on what isn't working? I think the PDBs are source linked and on the Microsoft symbol server so in theory everything should be working. |
@Eilon, I tried to set up a function breakpoint inside EF Core and tried to step into Besides the fact that everyone these days are using embedded PDBs or packaging them with the libraries and linking the PBDs to the source (GitHub, in this case), what do I have to do to step into EF Core's code? |
@paulomorgado I saw in another issue that there was an issue with the symbol servers just recently and that it started working again. I found a blog post describing the settings you need to enable the source stepping to work: https://www.stevejgordon.co.uk/debugging-asp-net-core-2-source Have you followed those steps and it's still not working? |
I had the Microsoft Symbol Servers location unchecked because
You really should make the change to https://github.com/dotnet/sourcelink |
@paulomorgado sorry I'm not sure what change you are proposing, can you provide more details? |
@paulomorgado there was a discussion a long time ago and we concluded that the overall best solution in terms of supportability and functionality was to use symbol servers. It works cross platform, and it works in the broadest set of tools, and doesn't affect anyone not interested in symbols. |
I thought EntityFramework would make a good example for an E2E experience with Portable PDBs that have source link support. dotnet/roslyn#12759
To get an idea what these changes do, please read the readme that I updated today:
https://github.com/ctaggart/SourceLink
Then try:
Example:
Including the Portable PDBs in the package is doable. It would be easier if
--include-portable-pdbs
was added. NuGet/Home#4142 (comment)