question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default VS symbol loading mechanism does not work

See original GitHub issue

Description

pdbs should be published in a way which is easily consumable with VS default Symbol server, respective with SourceLink.
Currently it’s not easy/obvious to comsune the pdbs.

image

Steps to Reproduce

  1. create a maui app via VS 17.4 Preview 3
  2. update target-framework to net7 in csproj
  3. enable default symbol servers
  4. uncheck “just my code”
  5. start maui app
  6. open modules window
  7. select microsoft.maui.controls.dll
  8. rightclick -> “load symbols”

Expected Result: symbols are loaded (from nuget or symbol server)

Actual Result: no symbols can be loaded, because none are found

Link to public reproduction project repository

n/a

Version with bug

assembly-version: 7.00.0.269

Last version that worked well

i think, it never worked in maui.

Affected platforms

iOS, Android, Windows, macOS

Affected platform versions

assembly-version: 7.00.0.269

Did you find any workaround?

manually select the pdb from C:\Program Files\dotnet\packs\Microsoft.Maui.Controls.Runtime.win\7.0.0-rc.1.6683\lib\net7.0-windows10.0.19041

Relevant log output

C:\Users\juwens\source\repos\MauiAppValueTypeConversionExample\MauiAppMassConversionExample\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Maui.Controls.pdb: Cannot find or open the PDB file.
C:\Users\juwens\source\repos\MauiAppValueTypeConversionExample\MauiAppMassConversionExample\bin\Debug\net7.0-windows10.0.19041.0\win10-x64\AppX\Microsoft.Maui.Controls.pdb: Cannot find or open the PDB file.
D:\a\_work\1\s\src\Controls\src\Core\obj\Release\net7.0-windows10.0.19041\Microsoft.Maui.Controls.pdb: Cannot find or open the PDB file.
C:\Users\juwens\AppData\Local\Temp\SymbolCache\Microsoft.Maui.Controls.pdb\c6f2c1b347ce4b3183e4848f501c9a2cffffffff\Microsoft.Maui.Controls.pdb: Cannot find or open the PDB file.
C:\Users\juwens\AppData\Local\Temp\SymbolCache\MicrosoftPublicSymbols\Microsoft.Maui.Controls.pdb\c6f2c1b347ce4b3183e4848f501c9a2cffffffff\Microsoft.Maui.Controls.pdb: Cannot find or open the PDB file.
C:\Users\juwens\AppData\Local\Temp\SymbolCache\Microsoft.Maui.Controls.pdb\c6f2c1b347ce4b3183e4848f501c9a2c1\Microsoft.Maui.Controls.pdb: Cannot find or open the PDB file.
C:\Users\juwens\AppData\Local\Temp\SymbolCache\MicrosoftPublicSymbols\Microsoft.Maui.Controls.pdb\c6f2c1b347ce4b3183e4848f501c9a2c1\Microsoft.Maui.Controls.pdb: Cannot find or open the PDB file.
SYMSRV:  BYINDEX: 0x29
         C:\Users\juwens\AppData\Local\Temp\SymbolCache*https://referencesource.microsoft.com/symbols
         Microsoft.Maui.Controls.pdb
         C6F2C1B347CE4B3183E4848F501C9A2Cffffffff


SYMSRV:  UNC: C:\Users\juwens\AppData\Local\Temp\SymbolCache\Microsoft.Maui.Controls.pdb\C6F2C1B347CE4B3183E4848F501C9A2Cffffffff\Microsoft.Maui.Controls.pdb - path not found
SYMSRV:  UNC: C:\Users\juwens\AppData\Local\Temp\SymbolCache\Microsoft.Maui.Controls.pdb\C6F2C1B347CE4B3183E4848F501C9A2Cffffffff\Microsoft.Maui.Controls.pd_ - path not found
SYMSRV:  UNC: C:\Users\juwens\AppData\Local\Temp\SymbolCache\Microsoft.Maui.Controls.pdb\C6F2C1B347CE4B3183E4848F501C9A2Cffffffff\file.ptr - path not found
SYMSRV:  HTTPGET: /symbols/Microsoft.Maui.Controls.pdb/C6F2C1B347CE4B3183E4848F501C9A2Cffffffff/Microsoft.Maui.Controls.pdb
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  HTTPGET: /symbols/Microsoft.Maui.Controls.pdb/C6F2C1B347CE4B3183E4848F501C9A2Cffffffff/Microsoft.Maui.Controls.pd_
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  HTTPGET: /symbols/Microsoft.Maui.Controls.pdb/C6F2C1B347CE4B3183E4848F501C9A2Cffffffff/file.ptr
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  RESULT: 0x80190194
SYMSRV:  BYINDEX: 0x2A
         C:\Users\juwens\AppData\Local\Temp\SymbolCache*https://referencesource.microsoft.com/symbols
         Microsoft.Maui.Controls.pdb
         C6F2C1B347CE4B3183E4848F501C9A2C1
SYMSRV:  UNC: C:\Users\juwens\AppData\Local\Temp\SymbolCache\Microsoft.Maui.Controls.pdb\C6F2C1B347CE4B3183E4848F501C9A2C1\Microsoft.Maui.Controls.pdb - file not found
SYMSRV:  UNC: C:\Users\juwens\AppData\Local\Temp\SymbolCache\Microsoft.Maui.Controls.pdb\C6F2C1B347CE4B3183E4848F501C9A2C1\Microsoft.Maui.Controls.pd_ - file not found
SYMSRV:  UNC: C:\Users\juwens\AppData\Local\Temp\SymbolCache\Microsoft.Maui.Controls.pdb\C6F2C1B347CE4B3183E4848F501C9A2C1\file.ptr - file not found
SYMSRV:  HTTPGET: /symbols/Microsoft.Maui.Controls.pdb/C6F2C1B347CE4B3183E4848F501C9A2C1/Microsoft.Maui.Controls.pdb
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  HTTPGET: /symbols/Microsoft.Maui.Controls.pdb/C6F2C1B347CE4B3183E4848F501C9A2C1/Microsoft.Maui.Controls.pd_
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  HTTPGET: /symbols/Microsoft.Maui.Controls.pdb/C6F2C1B347CE4B3183E4848F501C9A2C1/file.ptr
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  RESULT: 0x80190194

https://referencesource.microsoft.com/symbols: Symbols not found on symbol server.
https://msdl.microsoft.com/download/symbols: Skipped checking location. A stripped symbol file was previously found in this location.
SYMSRV:  BYINDEX: 0x2B
         C:\Users\juwens\AppData\Local\Temp\SymbolCache*https://symbols.nuget.org/download/symbols
         Microsoft.Maui.Controls.pdb
         C6F2C1B347CE4B3183E4848F501C9A2Cffffffff


SYMSRV:  UNC: C:\Users\juwens\AppData\Local\Temp\SymbolCache\Microsoft.Maui.Controls.pdb\C6F2C1B347CE4B3183E4848F501C9A2Cffffffff\Microsoft.Maui.Controls.pdb - path not found
SYMSRV:  UNC: C:\Users\juwens\AppData\Local\Temp\SymbolCache\Microsoft.Maui.Controls.pdb\C6F2C1B347CE4B3183E4848F501C9A2Cffffffff\Microsoft.Maui.Controls.pd_ - path not found
SYMSRV:  UNC: C:\Users\juwens\AppData\Local\Temp\SymbolCache\Microsoft.Maui.Controls.pdb\C6F2C1B347CE4B3183E4848F501C9A2Cffffffff\file.ptr - path not found
SYMSRV:  HTTPGET: /download/symbols/Microsoft.Maui.Controls.pdb/C6F2C1B347CE4B3183E4848F501C9A2Cffffffff/Microsoft.Maui.Controls.pdb
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  HTTPGET: /download/symbols/Microsoft.Maui.Controls.pdb/C6F2C1B347CE4B3183E4848F501C9A2Cffffffff/Microsoft.Maui.Controls.pd_
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  HTTPGET: /download/symbols/Microsoft.Maui.Controls.pdb/C6F2C1B347CE4B3183E4848F501C9A2Cffffffff/file.ptr
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  RESULT: 0x80190194


https://symbols.nuget.org/download/symbols: Symbols not found on symbol server.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:3
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
drasticactionscommented, Oct 17, 2022

@PureWeen This is not a VS issue, the MAUI symbols are not published to Nuget, making it very hard to debug when MAUI itself throws an error.

@juwens the PDBs are included within the nuget package itself. If you go to your nuget cache you should be able to find them for all the MAUI packages and can load them manually. I do agree that they should be published to nuget itself as well though, since that would be more accessible for everyone.

2reactions
mstefarovcommented, Jun 6, 2023

I tried loading MAUI symbols for my app and found it very frustrating. Out-of-the-box, VisualStudio cannot find any symbols. The “Modules” window fails to show which version of the DLL is actually in use:

2023-06-06_120711 devenv

I searched my “workloads” folder and found over 50 potential matches – none of them actually matched though, wasting my time.

2023-06-06_120235 explorer

Next, I search my nuget cache – found a few candidates, debugger wouldn’t load any of them.

Next, I found more PDBs in my intermediate-output folder. Great, I thought, this must be it. Nope, VisualStudio again reports a mismatch.

2023-06-06_125432 explorer

So, having wasted 30 minutes of my time, I give up. I wanted to contribute to MAUI by debugging a problem and writing a helpful bug report but I can’t.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Symbol Loading Issues - Visual Studio 2019
When debugging, open Debug->Windows->Modules. You could right click .dll ->Symbol Load information, check if the pdf file exists. If it contains ...
Read more >
Symbol / PDB files in the Visual Studio debugger
When you debug a project in the Visual Studio IDE, the debugger automatically loads symbol files that it can find by default.
Read more >
Symbol and Source Server - NuGet (.NET)
Whether or not the symbols have been loaded, you can right-click on the DLL and select "Symbol Load Information..." to view the diagnostic ......
Read more >
Symbol Access Library
The drsyms DynamoRIO Extension provides symbol information. Currently drsyms supports reading symbol information from Windows PDB files or Linux ELF, ...
Read more >
Weak symbol
A weak symbol denotes a specially annotated symbol during linking of Executable and Linkable Format (ELF) object files. By default, without any annotation, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found