We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ea524e commit 9155a8fCopy full SHA for 9155a8f
src/PowerShellEditorServices.Host/EditorServicesHost.cs
@@ -73,14 +73,16 @@ public EditorServicesHost(
73
this.featureFlags = new HashSet<string>(featureFlags ?? new string[0]);
74
75
#if DEBUG
76
- int waitsRemaining = 10;
77
if (waitForDebugger)
78
{
79
- while (waitsRemaining > 0 && !Debugger.IsAttached)
+ if (Debugger.IsAttached)
80
81
- Thread.Sleep(1000);
82
- waitsRemaining--;
+ Debugger.Break();
83
}
+ else
+ {
84
+ Debugger.Launch();
85
+ }
86
87
#endif
88
0 commit comments