dotnet-foundation / foundation

This repo is no longer being used. The information that is here has been migrated to https://github.com/dotnet-foundation/website.
https://www.dotnetfoundation.org
1.02k stars 173 forks source link

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

Open xperiandri opened 7 years ago

gkhanna79 commented 7 years ago

CC @markwilkie @dagood

richlander commented 7 years ago

/cc @bleroy @cmckinsey

lt72 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

Must this work? image

lt72 commented 7 years ago

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

xperiandri commented 7 years ago

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

lt72 commented 7 years ago

yes, it is

xperiandri commented 7 years ago

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

lt72 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

Eilon commented 7 years ago

@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 commented 7 years ago

@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 commented 7 years ago

@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 commented 7 years ago

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

Eilon commented 7 years ago

@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 commented 7 years ago

@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 commented 7 years ago

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

Eilon commented 7 years ago

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

JaredShaver commented 7 years ago

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

Eilon commented 7 years ago

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

brentschmaltz commented 7 years ago

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

Eilon commented 7 years ago

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

sujayathavale commented 6 years ago

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

faibistes commented 6 years ago

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

Legends commented 4 years ago

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?