microsoft / referencesource

Source from the Microsoft .NET Reference Source that represent a subset of the .NET Framework
https://referencesource.microsoft.com/
MIT License
3.13k stars 1.27k forks source link

System.Web.pdb does not contain source-stepping information (.NET 472, .NET 4.8) #138

Open daiplusplus opened 4 years ago

daiplusplus commented 4 years ago

The source-code for Systdm.Web.dll is available, as is a System.Web.pdb file, however VS states that the PDB file doesn’t contain the extra source-stepping debug information.

This happens with the System.Web.pdb versions for .NET 4.7.2 and 4.8.

megaromb commented 2 years ago

The same is true for System.Web.Extensions (4.0)

Debug->Windows->Modules:

System.Web.Extensions.dll System.Web.Extensions.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll Yes N/A Symbols loaded. C:\Users[...]\AppData\Local\Temp\SymbolCache\System.Web.Extensions.pdb\9506c657e25143b69cbcaba9c8a43ff81\System.Web.Extensions.pdb 37 4.08.4330.0 1/5/2021 12:03 AM 636F0000-63A1C000 [9324] w3wp.exe [2] /LM/W3SVC/6/ROOT-1-132744627688109716

Debug->Windows-> Call Stack (pointer position):

System.Web.Extensions.dll!System.Web.Handlers.ScriptModule.OnPostAcquireRequestState(object sender, System.EventArgs eventArgs) Unknown

System.NullReferenceException: 'Object reference not set to an instance of an object.'

Source Not Available Source information is missing from the debug information for this module You can view disassembly ...

daiplusplus commented 2 years ago

As a work-around, I used ILSpy to generate a PDB - but it had errors generating it so it’s a bit flakey.

megaromb commented 2 years ago

for me as a workaround jetbrains dotPeek worked fine (without any errors) just remember to use generated (decompiled) C# files along with PDBs