Visual Studio freezes when switching to debug mode

Viewed 17337

Strange Visual Studio (TS 2008) problem: The IDE completely freezes whenever I switch from Release to Debug mode in a specific project. It happens right as I switch, before I try to build or do anything else.

The whole thing started out of the blue, without any abnormal change I can think of. I tried to clean the solution, but it didn't help.

Anyone ran into this before?

5 Answers

Had this problem in 2017. I ran VS 2017 as Administrator and it worked.

I've encountered this in VS 2017 (15.8). Upgrade to the newest version (15.9 at that time) resolved the issue.

VS seems to be doing a lot behind the scenes and putting project-specific files in App Data and who knows where else. I had this experience: I had a project which had two sets of identical code in two different directories: one for production, one for development. The development project started hanging on debug, the production did not. Tried all kind of settings and deleting .suo files, but no help. So I renamed the directory that the development version was in and presto, eveything worked without hanging.

In my particular case, I tried many other answers with no luck. It turned out that a call to this was hanging the debugger:

Log4NetExtensions.AssertFail("Error");

I managed to narrow it down to this line of code by bring up the threads window under [ Debug > Windows > Threads ] and clicking on the current thread to browse to the line of code it was hanging on.

Related