Skip to content
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

SourceLink support for easier debug #283

Open
Luiz-Monad opened this issue Dec 20, 2020 · 2 comments
Open

SourceLink support for easier debug #283

Luiz-Monad opened this issue Dec 20, 2020 · 2 comments

Comments

@Luiz-Monad
Copy link

Luiz-Monad commented Dec 20, 2020

Context:
I was trying to find an amusing problem with my SAFE app on docker-alpine-aspnet, then I stumbled in a crash that ApplicationInsights wasn't reporting any error, only that the request returned 500 - internal server error. My problem turned out to be some stupid missing dependencies because of a broken paket.lock, now our problem at hand.

Problem:
Now the problem I had with my debugging is that when I got the Visual Studio to attach inside the Kestrel inside the container, It didn't had the Saturn.pdb that would support the debugging experience, so I couldn't put breakpoints.

Workaround
I found an workaround by following this issue dotnet/sdk#1458, from dotnet/msbuild#2920.
Better support for pdb on nuget is being developed (tracked by this NuGet/Home#5926), meanwhile if we use the sourcelink, it will fix everything magically.

Proposed Solution
Doing the same as what this project did (abpframework/abp#6421) would solve the sourcelink problem.

image

Note that somehow Giraffe does it right.
1
image

@clairernovotny
Copy link

We released a NuGet package you can add to make this easier to configure. Directions are in the readme: https://github.com/dotnet/reproducible-builds

@baronfel
Copy link
Contributor

Nice @clairernovotny, that will reduce a lot of the boilerplate!

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

No branches or pull requests

4 participants