-
Couldn't load subscription status.
- Fork 520
Closed
Labels
Area-DebuggingIssue-BugA bug to squash.A bug to squash.Resolution-FixedWill close automatically.Will close automatically.
Milestone
Description
Issue Description
I am experiencing a problem with the debugger. It hangs when a breakpoint inside a scriptblock is hit.
Steps to reproduce:
- Paste the script as a new ps1 file, and run it.
- In the Integrated terminal type 'Stop-Service -Name <tab>'
- The debug session is started, but it does not accept further interaction.
$s = {
param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters)
Set-PSBreakpoint -command Get-Service
$services = Get-Service | Where-Object {$_.Status -eq "Running" -and $_.Name -like "$wordToComplete*"}
$services | ForEach-Object {
New-Object -Type System.Management.Automation.CompletionResult -ArgumentList $_.Name,
$_.Name,
"ParameterValue",
$_.Name
}
}
Register-ArgumentCompleter -CommandName Stop-Service -ParameterName Name -ScriptBlock $sBeyond this point, you can only kill the integrated terminal. It will not accept any other input.

NOTE:
This only happens in the PowerShell Preview Extension. The GA PowerShell extension does not have this bug.
The bug is also not reproducible in a stand alone console in PowerShell 5.1, Powershell 6.2.3, or 7.0.0.rc2, or PowerShell_ise (5.1). It is specific to the Preview version of the extension.
Attached Logs
1580281742-dc8c91be-e55c-4eed-822f-c087bed38b011580281219461.zip
Environment Information
Visual Studio Code
| Name | Version |
|---|---|
| Operating System | Windows_NT x64 10.0.18363 |
| VSCode | 1.41.1 |
| PowerShell Extension Version | 2020.1.0 |
PowerShell Information
| Name | Value |
|---|---|
| PSVersion | 7.0.0-rc.2 |
| PSEdition | Core |
| GitCommitId | 7.0.0-rc.2 |
| OS | Microsoft Windows 10.0.18363 |
| Platform | Win32NT |
| PSCompatibleVersions | 1.0 2.0 3.0 4.0 5.0 5.1.10032.0 6.0.0 6.1.0 6.2.0 7.0.0-rc.2 |
| PSRemotingProtocolVersion | 2.3 |
| SerializationVersion | 1.1.0.1 |
| WSManStackVersion | 3.0 |
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
| Extension | Author | Version |
|---|---|---|
| azure-account | ms-vscode | 0.8.8 |
| azure-pipelines | ms-azure-devops | 1.165.1 |
| azurecli | ms-vscode | 0.4.6 |
| bracket-pair-colorizer-2 | CoenraadS | 0.0.29 |
| cmake | twxs | 0.0.17 |
| code-settings-sync | Shan | 3.4.3 |
| cpptools | ms-vscode | 0.26.3 |
| csharp | ms-vscode | 1.21.9 |
| csharpfixformat | Leopotam | 0.0.84 |
| docomment | k--kato | 0.1.8 |
| gitlab-ci-validator | cstuder | 1.0.0 |
| gitlens | eamodio | 10.2.0 |
| Go | ms-vscode | 0.12.0 |
| LiveServer | ritwickdey | 5.6.1 |
| powershell-preview | ms-vscode | 2020.1.0 |
| python | ms-python | 2020.1.58038 |
| remote-containers | ms-vscode-remote | 0.94.0 |
| remote-ssh | ms-vscode-remote | 0.48.0 |
| remote-ssh-edit | ms-vscode-remote | 0.48.0 |
| remote-wsl | ms-vscode-remote | 0.41.7 |
| swagger-viewer | Arjun | 2.2.2 |
| terraform | mauve | 1.4.0 |
| vscode-azurefunctions | ms-azuretools | 0.20.2 |
| vscode-azureterraform | ms-azuretools | 0.3.0 |
| vscode-icons | vscode-icons-team | 9.7.0 |
| vscode-markdownlint | DavidAnson | 0.33.0 |
| vscode-pull-request-github | GitHub | 0.14.0 |
| vscode-remote-extensionpack | ms-vscode-remote | 0.19.0 |
| vscode-svg-previewer | vitaliymaz | 0.5.1 |
| vscode-typescript-tslint-plugin | ms-vscode | 1.2.3 |
| vsliveshare | ms-vsliveshare | 1.0.1510 |
| vsonline | ms-vsonline | 1.0.1507 |
| xml | DotJoshJohnson | 2.5.0 |
Metadata
Metadata
Assignees
Labels
Area-DebuggingIssue-BugA bug to squash.A bug to squash.Resolution-FixedWill close automatically.Will close automatically.