Here is similar question with a solution that works really well.
It does NOT require Thread.Sleep
.
Just Launches the debugger using this code.
Clipped from the answer
if (!System.Diagnostics.Debugger.IsAttached)
System.Diagnostics.Debugger.Launch();