Open xperiandri opened 7 years ago
/cc @bleroy @cmckinsey
Symbols for .Net Core 1.1. are available as a download from the Microsoft Download Center at this URL. This package includes both Linux and Windows symbol packages. You can also acquire the symbols directly from the Microsoft Symbol Server is you are debugging on a .Net Core Windows application. Linux is not supported yet from the symbol server, but we may be able to enable that soon.
To get the Linux and Windows symbol packages for other releases, you can also find Microsoft Download Center links in the release notes in the dotnet/core repository:
Must this work?
yes, it should work if you use an official release, such as preview1: https://www.microsoft.com/net/core/preview#windowscmd
I use 1.1 Is the first source equivalent to the second one in my above screenshot?
yes, it is
So what can be the issue where symbols for Microsoft.Exnesions.*
and Microsoft.AspNetCore.*
packages are not downloaded?
Both of those are packages from ASP.NET core, which were not uploaded to sym server using the same process for other packaages from the framework (e.g. CoreFX). We may have some missing symbols, I'll check...
Yes, please. Because it is very inconvenient that I can step through sources. I got an issue with very undescriptive error and couldn't have a look deeper that's happened.
@Eilon : were the symbols for ASP.Net Core for 1.1. uploaded to //symweb (msdl)?
@lt72 - I think @vancem uploaded some ASP.NET Core 1.1 symbols somewhere, but I'm not sure. No one on my team uploaded them anywhere.
@Eilon. I dealt with the Native PDBs (which are only needed by profilers, not the debugger). For version 1.1 ASP.NET Dlls I only did 32 bit ones because from what I could tell version 1.1 does not support dotnet-store, and the only scenario that was generating Native code files for ASP.NET DLLs was Antares, which did it by hand (and you pointed me at them).
However I believe all of this is irrelevant for the case above, because this is for the debugger. They need the IL PDBs (in version 1.1), and I don't know who those get published for ASP.NET.
@Eilon will the symbols be published for ASP.NET Core 2 by the time it releases? I was unable to download them from the Microsoft symbol server or the http://srv.symbolsource.org/pdb/Public or http://srv.symbolsource.org/pdb/MyGet servers using ASP.NET Core 2 preview 2. Being able to step into the source was invaluable when implementing OpenID Connect OWIN middleware and I was hoping I could do the same with ASP.NET Core when implementing the new services/middleware pipeline.
@JaredShaver we're working on it today for ASP.NET Core 2, sorry for the delay!
@JaredShaver the symbols for ASP.NET/EF Core 2.0.0 are being processed, I'll try to update this thread when they're ready.
@JaredShaver - I believe the ASP.NET/EF Core 2.0.0 symbols should be up now. Please give it a try and let us know. (Please note that source links were not enabled in this build, that's something that's still in our plans for future releases.)
I tried with the asp.net core 2.1.0-preview1-26636, but it doesn't work, no symbols found.
Indeed, it appears there might be a problem with the uploaded symbols - we are investigating.
@Eilon It looks like the symbols for ASP.NET Core 2 release are loading now, thank you for getting it sorted out.
IdentityModel symbols are still missing though, I'm guessing that is another team's responsibility... Examples:
@brentschmaltz - does your team upload symbols for the IdentityModel packages?
@Eilon we do not. Can you point us to instructions.
@brentschmaltz I'll send you an email with who to contact.
@brentschmaltz, can you confirm if the symbols for the IdentityModel packages are available now from Microsoft Symbol Server?
I can confirm that IdentityModel symbols aren't available, and that's biting us hard
Just created a breakpoint in my .net core console application (VS2019) at:
Directory.EnumerateFiles
Hitting F11
to step into source code, debug output shows:
'dotnet.exe' (CoreCLR: DefaultDomain): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.1\System.Private.CoreLib.dll'. Symbols loaded. 'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Users\Admin\Documents\Visual Studio 2019\Projects\ConsoleAppTest\bin\Debug\netcoreapp2.2\ConsoleAppTest.dll'. Symbols loaded. 'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.1\System.Runtime.dll'. Symbols loaded. 'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.1\System.IO.FileSystem.dll'. Symbols loaded. 'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.1\System.Linq.dll'. Symbols loaded. 'dotnet.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.1\System.Runtime.Extensions.dll'. Symbols loaded. SRCSRV: The module 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.1\System.IO.FileSystem.dll' does not contain source server information.
First it says symbols loaded for FileSystem
and then a the end: The module FileSystem
does not contain source server information.
So how can I debug .net core code?
CC @markwilkie @dagood