VS2010 Debug entry very slow

前端 未结 5 1062
挽巷
挽巷 2020-12-17 00:24

When I start debugging my web application either from Start with Debugging (F5) or attaching to the ASP.NET worker process it will load the assemblies from the application v

相关标签:
5条回答
  • 2020-12-17 00:52

    Menu.Debug.DeleteAllBreakpoints

    Worked for me.

    0 讨论(0)
  • 2020-12-17 00:56

    Yes, msvsmon.exe will be used when you debug a 64-bit program. Since Visual Studio is completely 32-bit, the remote debugger is needed to bridge the divide.

    There isn't any reason to assume that the slowdown is caused by it being a remote debugger. Working mightily to find and load the .pdb files would be likely. Or accidentally having the mixed-mode debugging option turned on so the debugger is also seeing all unmanaged DLL loads and finding symbols for them. These are just guesses of course.

    0 讨论(0)
  • 2020-12-17 01:06

    I had this same problem, though this solution didn't do it for me. In the end, I had to go into Tools->Options->Debugging->Symbols and uncheck the Symbol file (.pdb) locations as well as click the Empty Symbol Cache button. After that, debugging was much nicer.

    0 讨论(0)
  • 2020-12-17 01:08

    Searching for symbols is often very slow at the start of debug, particularly if you have one of the remote symbol options configured, and have not set 'ignores' on the various DLLs which will not have symbols on MS servers.

    These can be not only things like 3rd party components of your code, but also hooks DLLs injected by, for example, graphics drivers, so it's worth keeping an eye on what's trying to load.

    Running Fiddler ( http://www.fiddler2.com/fiddler2/ ) while starting debugging will show you if symbols are being fetched remotely.

    Even if VS is not explicitly set (In tools->options-debug) for remote symbol fetch, it will still follow the _NT_SYMBOL_PATH environment variable - check if that's set, and what it points to.

    0 讨论(0)
  • 2020-12-17 01:13

    For me the problem was I a had PUP (potentially unwanted program) installed which was slowing down the other processes. After a couple of times that MSVSMON was showing this behaviour, I got aware that the Cltmng.exe process (from Search Protect by conduit) was taking an unusual amount of CPU as well, removing it solved the problem.

    0 讨论(0)
提交回复
热议问题