Visual Studio 2017 - how to point debug symbols for diagsession generated on the other machine

Irbis 1 Reputation point
2022-02-03T13:16:34.757+00:00

I use Visual Studio 2017. I open diagsession file generated on other machine. Output window shows that symbols
have not been loaded, for example:

Symbols failed to load for C:\Workspace\App\libA.dll. Cannot find or open the PDB file.

I have built appropriate libs. The libs have been build from the same source code as on the other machine. Then
I have set a path to the pdb files: Debug/Options/Symbols/Symbol file (.pdb) locations. It doesn't help. I have also
copied libs and pdbs to the some location as mentioned in the output output window, i.e. Symbols failed to load
for... but it also doesn't work. Am I doing something wrong ? How to point symbols for diagsession generated on
the other machine ?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,617 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
942 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 27,356 Reputation points Microsoft Vendor
    2022-02-07T07:34:20.717+00:00

    Hi @Irbis ,

    Welcome to Microsoft Q&A forum.

    Please make sure you have checked this option: Tools > Options… > Debugging > Symbols > Symbol file (.pdb) locations > Microsoft Symbol Servers, and have set the Cache symbols in this directory option as default path(normally default path is like %Temp%\SymbolCache).

    171806-image.png

    Feel free to contact me.

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.