-
Notifications
You must be signed in to change notification settings - Fork 8.2k
While debugging, sometimes won't cancel, and "accepting" #5374
Copy link
Copy link
Closed
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.WG-Interactive-Debuggingdebugging PowerShell scriptdebugging PowerShell script
Description
From @lzybkr on November 2, 2015 18:52
To repro:
PS> function foo {}
PS> sbp -command foo
PS> foo
[DBG]: PS>> (@($availableModules | ?{ $_.SessionState -eq $null
>> }).Count
>>
>> ^C
Important to this repro - hit enter twice (so you have one blank line) before hitting Ctrl+c.
After doing this, the command line should be cancelled, but it isn't, and figuring out how to fix the error might be hard, it's sometimes easiest to just exit PowerShell at that point.
Copied from original issue: PowerShell/PSReadLine#299
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.WG-Interactive-Debuggingdebugging PowerShell scriptdebugging PowerShell script