C
C#•2d ago
Torn

Unable to find symbol file

I'm trying to CPU profile a console application, but for some reason, after the profiling finishes, I can't see the details of what took how much CPU, because it's "Unable to find symbol file". The .pdb file is in the same folder, so I don't see why it's having trouble. Any idea what to do or how to further diagnose this?
No description
5 Replies
Adam Vincent
Adam Vincent•2d ago
is this .NET 5+? try adding <IncludeSymbols>true</IncludeSymbols> to your csproj in a PropertyGroup.
Torn
TornOP•2d ago
Yes, this should be the newest major release.
Adam Vincent
Adam Vincent•2d ago
I think <IncludeSymbols> is for packing Nuget packages tho, so I could be wrong.
Torn
TornOP•2d ago
Nope, no change. I even caught a glimpse of some loading bar where it said it was loading symbols. 🤷
Torn
TornOP•2d ago
Another screenshot to illustrate the problem.
No description

Did you find this page helpful?