Skip to content

Changing breakpoints during execution causes a hang #1658

Closed
@LazerFX

Description

@LazerFX

Issue Description

When I try and change breakpoints during script execution, the output hangs when it encounters any breakpoint that is already set.

Reproduction steps

  1. Open a PowerShell in VS Code that will take a long time to execute (I was using one that called Import-Module AWSPowerShell.NetCore which takes on the region of 20 - 30 seconds.
  2. Ensure that a breakpoint is set, after the long-running section
  3. While the script is executing, place a new breakpoint or remove the existing breakpoint in the file
  4. Execution will hang at an indeterminate position in the file

I've already looked at #1589 which references #1263, but those don't appear to be the same bug (To me, at least).
I saw #1494 which appears similar but has a different trigger (To me, at least - it may be the same problem)
#1163 also appears similar, but with a different actualisation.

Please accept my apologies if this is the same as one of these existing bugs.

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.17763
VSCode 1.30.0
PowerShell Extension Version 1.10.1

PowerShell Information

Name Value
PSVersion 6.1.0
PSEdition Core
GitCommitId 6.1.0
OS Microsoft Windows 10.0.17763
Platform Win32NT
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.10032.0 6.1.0
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
aurelia AureliaEffect 1.0.3
azurecli ms-vscode 0.4.2
beautify HookyQR 1.4.7
csharp ms-vscode 1.17.1
gitignore codezombiech 0.6.0
gitlens eamodio 9.2.0
nuget-reverse-package-search jesschadwick 0.1.68
PowerShell ms-vscode 1.10.1
team ms-vsts 1.144.1
terraform mauve 1.3.7
tslint eg2 1.0.41
vetur octref 0.14.3
vscode-docker PeterJausovec 0.4.0
vscode-helm technosophos 0.4.0
vscode-kubernetes-tools ms-kubernetes-tools 0.1.14
vscode-markdownlint DavidAnson 0.22.0
vscode-npm-script eg2 0.3.5
vscode-nuget-package-manager jmrog 1.1.6
vscode-solution-explorer fernandoescolar 0.3.0
vscode-yaml redhat 0.1.0
vsliveshare ms-vsliveshare 0.3.1013
vsliveshare-audio ms-vsliveshare 0.1.45
xml DotJoshJohnson 2.3.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions