Resharper doesn't understand PTR (symbol store pointer) files

I've a symbols server that serves PTR - symbol store pointer files that point to PDB files. The content of PTR is as follows:

PATH:\\redmond\symfiles\vsosymprxy01\cache\72\8F\4BF485DDE0BEE806898A15115899F254AFFA630C7BB2AE94AEAA8F3A076500\Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb

This feature of sym store is explained here and also mentioned here. The Resharper 2017.3 tries to lookup PDB files and fails. When I try to "Navigate To..." -> "Sources from Symbol Files" then it logs:

PdbNavigator: Downloader: http://srv.symbolsource.org/pdb/Public/Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb/741E5C6C2A4846EDA2B1A40040A8776E1/Microsoft.Skype.Identity.Skypetoken.Abstractions.pd_ -> ok, 0 bytes
PdbNavigator: Downloader: http://srv.symbolsource.org/pdb/Public/Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb/741E5C6C2A4846EDA2B1A40040A8776E1/Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb -> The remote server returned an error: (404) Not Found.
PdbNavigator: Downloader: http://symweb/Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb/741E5C6C2A4846EDA2B1A40040A8776E1/Microsoft.Skype.Identity.Skypetoken.Abstractions.pd_ -> The remote server returned an error: (404) Not Found.
PdbNavigator: Downloader: http://symweb/Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb/741E5C6C2A4846EDA2B1A40040A8776E1/Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb -> The remote server returned an error: (404) Not Found.
PdbNavigator: Downloader: http://symweb/Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb/741E5C6C2A4846EDA2B1A40040A8776E1/Microsoft.Skype.Identity.Skypetoken.Abstractions.pd_ -> The remote server returned an error: (404) Not Found.
PdbNavigator: Downloader: http://symweb/Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb/741E5C6C2A4846EDA2B1A40040A8776E1/Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb -> The remote server returned an error: (404) Not Found.
PdbNavigator: Downloader: http://symweb::Microsoft.Skype.Identity.Skypetoken.Abstractions.dll::741E5C6C2A4846EDA2B1A40040A8776E1 -> NotFound (cached)
PdbNavigator: No debugging information found on symbol servers for Microsoft.Skype.Identity.Skypetoken.Abstractions, Version=3.0.16.0, Culture=neutral, PublicKeyToken=31bf3856ad364e3

When I run the debugging session then PDB files are properly downloaded and used by debugger and cached. Trying to go to sources by ReSharper will find the cached PDB files and use them.

PdbNavigator: Searching for 'Microsoft.Skype.Identity.Skypetoken.Abstractions.Exceptions.SkypetokenValidationException' type sources in C:\Users\marekn\AppData\Local\Temp\SymbolCache\Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb\741E5C6C2A4846EDA2B1A40040A8776E1\Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb

For completeness the symchk command output:

C:\Users\marekn>\\symbols\tools\x86\symchk.exe C:\Users\marekn\Source\Repos\service-shared_framework_skypetoken\src\Skypetoken\bin\Debug\Microsoft.Skype.Identity.Skypetoken.Abstractions.dll /od /v
[SYMCHK] Searching for symbols to C:\Users\marekn\Source\Repos\service-shared_framework_skypetoken\src\Skypetoken\bin\Debug\Microsoft.Skype.Identity.Skypetoken.Abstractions.dll in path SRV*C:\WINDOWS\SYMBOLS*http://symweb
DBGHELP: Symbol Search Path: SRV*C:\WINDOWS\SYMBOLS*http://symweb
[SYMCHK] Using search path "SRV*C:\WINDOWS\SYMBOLS*http://symweb"
DBGHELP: No header for C:\Users\marekn\Source\Repos\service-shared_framework_skypetoken\src\Skypetoken\bin\Debug\Microsoft.Skype.Identity.Skypetoken.Abstractions.dll.  Searching for image on disk
DBGHELP: C:\Users\marekn\Source\Repos\service-shared_framework_skypetoken\src\Skypetoken\bin\Debug\Microsoft.Skype.Identity.Skypetoken.Abstractions.dll - OK
SYMSRV:  http://symweb/Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb/741E5C6C2A4846EDA2B1A40040A8776E1/file.ptr
SYMSRV:  Can't create C:\WINDOWS\SYMBOLS\Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb\741E5C6C2A4846EDA2B1A40040A8776E1\Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb
         Access is denied.
SYMSRV:  Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb from \\redmond\symfiles: 13824 bytes - copied
DBGHELP: Microsoft.Skype.Identity.Skypetoken.Abstractions - private symbols & lines
        C:\ProgramData\dbg\sym\Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb\741E5C6C2A4846EDA2B1A40040A8776E1\Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb
[SYMCHK] MODULE64 Info ----------------------
[SYMCHK] Struct size: 1680 bytes
[SYMCHK] Base: 0x00400000
[SYMCHK] Image size: 32768 bytes
[SYMCHK] Date: 0x5a65c532
[SYMCHK] Checksum: 0x0000cf45
[SYMCHK] NumSyms: 0
[SYMCHK] SymType: SymPDB
[SYMCHK] ModName: Microsoft.Skype.Identity.Skypet
[SYMCHK] ImageName: C:\Users\marekn\Source\Repos\service-shared_framework_skypetoken\src\Skypetoken\bin\Debug\Microsoft.Skype.Identity.Skypetoken.Abstractions.dll
[SYMCHK] LoadedImage: C:\Users\marekn\Source\Repos\service-shared_framework_skypetoken\src\Skypetoken\bin\Debug\Microsoft.Skype.Identity.Skypetoken.Abstractions.dll
[SYMCHK] PDB: "C:\ProgramData\dbg\sym\Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb\741E5C6C2A4846EDA2B1A40040A8776E1\Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb"
[SYMCHK] CV: RSDS
[SYMCHK] CV DWORD: 0x53445352
[SYMCHK] CV Data:  D:\a\_work\152\s\src\Abstractions\obj\Release\Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb
[SYMCHK] PDB Sig:  0
[SYMCHK] PDB7 Sig: {741E5C6C-2A48-46ED-A2B1-A40040A8776E}
[SYMCHK] Age: 1
[SYMCHK] PDB Matched:  TRUE
[SYMCHK] DBG Matched:  TRUE
[SYMCHK] Line nubmers: TRUE
[SYMCHK] Global syms:  TRUE
[SYMCHK] Type Info:    FALSE
[SYMCHK] ------------------------------------
SymbolCheckVersion  0x00000002
Result              0x000f0001
DbgFilename
DbgTimeDateStamp    0x5a65c532
DbgSizeOfImage      0x00008000
DbgChecksum         0x0000cf45
PdbFilename         C:\ProgramData\dbg\sym\Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb\741E5C6C2A4846EDA2B1A40040A8776E1\Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb
PdbSignature        {741E5C6C-2A48-46ED-A2B1-A40040A8776E}
PdbDbiAge           0x00000001
[SYMCHK] [ 0x00000000 - 0x000f0001 ] Checked "C:\Users\marekn\Source\Repos\service-shared_framework_skypetoken\src\Skypetoken\bin\Debug\Microsoft.Skype.Identity.Skypetoken.Abstractions.dll"
SYMCHK: Microsoft.Skype.Identity.Skypetoken.Abstractions.dll PASSED  - PDB: Microsoft.Skype.Identity.Skypetoken.Abstractions.pdb DBG: <N/A>

SYMCHK: FAILED files = 0
SYMCHK: PASSED + IGNORED files = 1
1 comment
Comment actions Permalink
Official comment

Hello!

 

Thank you for the feedback.

Indeed there's no PTR files support in ReSharper at the moment. 

I've filed feature request on this matter - https://youtrack.jetbrains.com/issue/RSRP-468062. Please feel free to comment or vote for it.

Thank you.

Please sign in to leave a comment.