Skip to content

Improve the diagnostic UX when a missing PDB is encountered #5003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MichaelSimons opened this issue Apr 3, 2025 · 0 comments
Open

Improve the diagnostic UX when a missing PDB is encountered #5003

MichaelSimons opened this issue Apr 3, 2025 · 0 comments
Labels
area-dev-ux Developer user experience

Comments

@MichaelSimons
Copy link
Member

The diagnostic UX when a missing PDB is encountered is not great. In discussing this with @NikolaMilosavljevic, it is most likely the case that the dll which doesn't have a pdb is not produced from the build. It is likely it is from PSB or SBRP. The message emitted by the build provides no information to aid in determining this as was the case in this PR. In this case, the dll was picked up from PSB.

/__w/1/vmr/eng/finish-source-only.proj(95,5): warning : Did not find PDBs for the following SDK files:
/__w/1/vmr/eng/finish-source-only.proj(95,5): warning : sdk/10.0.100-preview.4.25203.1/Microsoft.ApplicationInsights.dll
/__w/1/vmr/eng/finish-source-only.proj(95,5): warning : sdk/10.0.100-preview.4.25203.1/DotnetTools/dotnet-watch/10.0.100-preview.4.25203.1/tools/net10.0/any/Microsoft.ApplicationInsights.dll

To help make this message more actionable, consider the following changes:

  1. Include the assembly version in the output.
  2. Include suggestions to diagnose. The first would be to suggest ensuring this dll was produced by the build and not picked up from PSB or SBRP. This could be embedded in the message or the message could link to external documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dev-ux Developer user experience
Projects
Status: Backlog
Development

No branches or pull requests

1 participant