It also works for me after using the fix you suggested - tested in VS2022. If I set a breakpoint into my code, then I can use "Step Into..." to step into ABP code. What does not work however is navigating to the code outside of debugging mode (e.g. using F12 go to definition) - VS will just show the decompiler output then
Seems like a major pain point for VS users that is not related to ABP in particular but applies to all libraries with sourcelink
Thank you very much for the prompt answer.
Can you maybe check with some of your colleagues using Visual Studio if they know a way to browse all sourcelink code? Based on this ticket, I assume it is currenlty not possible? https://github.com/dotnet/roslyn/issues/24349
hi
Because https://github.com/dotnet/sdk/issues/1458 you need to install https://www.nuget.org/packages/SourceLink.Copy.PdbFiles when we use the source link
Thanks, that resolves the issue - I tested with ABP community edition.
Two further points:
As you can read in my initial question, I have sourcelink enabled and it works for other packages. Can you please elaborate on why it could be that sourcelink does not work for ABP.
In general, how can I, inside Visual Studio or Rider debug what is going on inside your libraries? Let me describe an example issue I am facing: For the application I have at hand I enabled OIDC login by adding an .AddOpenIdConnect to the Services.AddAuthentication(). All fine so far, login with OIDC and our ping identity works. Next steps is to disable the login page. I found via a google search a github reference that describes I need to set “EnableLocalLogin” to false/0 in the database. I did this in the database, however it’s still not working. Now typically, I would want to set a breakpoint into the controller responsible for the login page and see what is going on. However, it seems to me that something with sourcelink is not working here (neither for ABP commercial nor community edition). While I can step into other libraries using the sources coming from NuGet and MS symbol servers, it is not working for abp sources. Can you describe how, in general, we can tackle issues such as the one described above?Please note that I am not looking for a solution to the exact issue above but rather a systematic approach to debugging issues such as the one described above within Visual Studio or Rider.