I wanted to debug the Seed() method in my Entity Framework database configuration class when I run Update-Database from the Package Manager Console
Seed()
Update-Database
Here is similar question with a solution that works really well. It does NOT require Thread.Sleep. Just Launches the debugger using this code.
Thread.Sleep
Clipped from the answer
if (!System.Diagnostics.Debugger.IsAttached) System.Diagnostics.Debugger.Launch();