Visual Studio debugging painfully slow when loading symbols

后端 未结 9 2033
遇见更好的自我
遇见更好的自我 2021-02-03 18:53

I have an issue which is practically similar to Visual Studio debugging/loading very slow but I haven\'t managed to find a solution to such a problem.

I have tried all w

9条回答
  •  臣服心动
    2021-02-03 19:40

    Try any of the following ...

    1. Enable Just My Code
      Go to Tools > Options > Debugging > General
      Check "Enable Just my Code"


    2. Cache Symbols Locally
      Go to Tools > Options > Debugging > Symbols Browse to local directory (make sure it's not on a network share) Click "Load All Symbols" or run the project to hydrate the cache



    3. Remove Remote Symbol Servers

      When you select a remote symbol server, Visual Studio gives you the following warning:

      The performance of remote symbols stores can vary due to latency, bandwidth, or availability of servers. Debugging performance can be improved by selecting the option to load only specified modules when enabling this server

      After loading your symbol cache, deselect remote symbols servers

      Go to Tools > Options > Debugging > Symbols Deselect "Microsoft Symbol Servers" to prevent Visual Studio from remotely querying the Microsoft servers.

    Further Reading

    Stack Overflow

    • Visual Studio debugging/loading very slow
    • Visual Studio Build Very Slow
    • Slow startup with IIS Express
    • Website takes a long time to start after solution build

    MS Docs

    • Visual Studio debugger documentation
    • Debug only user code with Just My Code
    • Specify symbol (.pdb) and source files in the Visual Studio debugger
    • Debugger Settings and Preparation

提交回复
热议问题