System.Diagnostics.Debugger.Break();
//Lauches the JIT debug window
System.Diagnostics.Debugger.Launch();
This is particularly useful when debugging a service as you get the Just In Time debugger window and can then select the visual studio window to debug the service in.