Solution to Visual Studio Hang when attaching and detaching debugger

Sometimes Visual Studio can be very annoying.
These last days, my debugger becames very slow when attaching (15sec) and detaching (5sec) my app (without logging anything).
I created a new project and everything worked like a charm, so there was a problem with my project.

The solution is to :

  • Close the project
  • Exit Visual Studio
  • Delete the “.vs” directory at the root
  • Here we go, everything works again now

.vs directory contains some settings stored inside sqlite databases, don’t lose your time to discover which line give this problem, delete is the solution 🙂

Have a good debugging day

This entry was posted in Uncategorized. Bookmark the permalink.