Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

What is the link to debug symbols server of .NET Core? #69

Open
xperiandri opened this issue Jan 23, 2017 · 27 comments
Open

What is the link to debug symbols server of .NET Core? #69

xperiandri opened this issue Jan 23, 2017 · 27 comments

Comments

@xperiandri
Copy link

No description provided.

@gkhanna79
Copy link

CC @markwilkie @dagood

@richlander
Copy link
Contributor

/cc @bleroy @cmckinsey

@lt72
Copy link

lt72 commented Apr 21, 2017

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.

@dagood
Copy link

dagood commented Apr 25, 2017

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:

@xperiandri
Copy link
Author

Must this work?
image

@lt72
Copy link

lt72 commented May 12, 2017

yes, it should work if you use an official release, such as preview1:
https://www.microsoft.com/net/core/preview#windowscmd

@xperiandri
Copy link
Author

I use 1.1
Is the first source equivalent to the second one in my above screenshot?

@lt72
Copy link

lt72 commented May 12, 2017

yes, it is

@xperiandri
Copy link
Author

So what can be the issue where symbols for Microsoft.Exnesions.* and Microsoft.AspNetCore.* packages are not downloaded?

@lt72
Copy link

lt72 commented May 14, 2017

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...

@xperiandri
Copy link
Author

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.

@lt72
Copy link

lt72 commented May 15, 2017

@Eilon : were the symbols for ASP.Net Core for 1.1. uploaded to //symweb (msdl)?

@Eilon
Copy link

Eilon commented May 15, 2017

@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.

@vancem
Copy link

vancem commented May 15, 2017

@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.

@JaredShaver
Copy link

@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.

@Eilon
Copy link

Eilon commented Aug 14, 2017

@JaredShaver we're working on it today for ASP.NET Core 2, sorry for the delay!

@Eilon
Copy link

Eilon commented Aug 14, 2017

@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.

@Eilon
Copy link

Eilon commented Aug 16, 2017

@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.)

@tiandian
Copy link

I tried with the asp.net core 2.1.0-preview1-26636, but it doesn't work, no symbols found.

@Eilon
Copy link

Eilon commented Aug 18, 2017

Indeed, it appears there might be a problem with the uploaded symbols - we are investigating.

@JaredShaver
Copy link

@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:

  • Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
  • Microsoft.IdentityModel.Tokens.dll
  • System.IdentityModel.Tokens.Jwt.dll
  • Microsoft.IdentityModel.Logging.dll
  • Microsoft.IdentityModel.Protocols.dll

@Eilon
Copy link

Eilon commented Aug 24, 2017

@brentschmaltz - does your team upload symbols for the IdentityModel packages?

@brentschmaltz
Copy link

@Eilon we do not. Can you point us to instructions.

@Eilon
Copy link

Eilon commented Aug 30, 2017

@brentschmaltz I'll send you an email with who to contact.

@sujayathavale
Copy link

@brentschmaltz, can you confirm if the symbols for the IdentityModel packages are available now from Microsoft Symbol Server?

@faibistes
Copy link

faibistes commented May 23, 2018

I can confirm that IdentityModel symbols aren't available, and that's biting us hard

@Legends
Copy link

Legends commented Oct 1, 2019

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?

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

No branches or pull requests