.NET Source Link: "Source not found" despite correct link

603 Views Asked by At

I think I set up everything correctly. My symbols are created and I configured Visual Studio after this tutorial. I can step into other libraries like JsonNet.

When I try to step into my code it tries to load the code from the correct path. (I can access the desired file via this path in the internet browser.)

enter image description here

It starts downloading:

enter image description here

But then it fails with the message: "Source Not Found" although the path is correct!

enter image description here

What can be the reason?

Edit 1: Add the source server debug messages under the Visual Studio Debugging Options: enter image description here

Then I get the following error message: SRCSRV: The module 'C:\Users\Administrator\.......\bin\Debug\netcoreapp3.1\.....SectorGrid.dll' does not contain source server information.

Edit 2: I do not add the source link parameter mentioned here. But I think this happens under the hood!? I do not get in touch with the mentioned json, described here. But I have an exact same link as described there within my .pdb file: enter image description here

2

There are 2 best solutions below

1
Badran Yahyaoui On

have you tried to enable the option "Enable Just My Code" in Debug → Options → Debugging → General

0
Marko A. On

A similar experience here: for my machine, it works for one codebase and for the others not. On the device of a colleague, it works for both.

I'm the owner of both repositories, so a permission problem is unlikely. What confuses me: there is this dialog that appeared during the first time of debugging a *.cs file of a NuGet package.

enter image description here

Then it doesn't show up again. Maybe I have chosen the wrong answer when it appeared on my machine. How can the selection be reset, so that the dialog appears again?