Skip to content

While debugging, sometimes won't cancel, and "accepting" #5374

@lzybkr

Description

@lzybkr

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions