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.
2 parents b6f58e9 + 5a34236 commit 5757058Copy full SHA for 5757058
src/PowerShellEditorServices.Host/Program.cs
@@ -27,15 +27,15 @@ static void Main(string[] args)
27
"/waitForDebugger",
28
StringComparison.InvariantCultureIgnoreCase));
29
30
- // Should we wait for the debugger before starting?
31
if (waitForDebugger)
32
{
33
- // Wait for 25 seconds and then continue
34
- int waitCountdown = 25;
35
- while (!Debugger.IsAttached && waitCountdown > 0)
+ if (Debugger.IsAttached)
36
37
- Thread.Sleep(1000);
38
- waitCountdown--;
+ Debugger.Break();
+ }
+ else
+ {
+ Debugger.Launch();
39
}
40
41
#endif
0 commit comments