-
Notifications
You must be signed in to change notification settings - Fork 518
Closed
Labels
Area-DebuggingIssue-BugA bug to squash.A bug to squash.Resolution-FixedWill close automatically.Will close automatically.
Milestone
Description
System Details
System Details Output
### VSCode version: 1.45.1 5763d909d5f12fe19f215cbfdd29a91c0fa9208a x64
### VSCode extensions:
[email protected]
[email protected]
[1589910870-8c153114-8590-4b1f-a3af-f31bcd83a35a1589910867420.zip](https://github.com/PowerShell/vscode-powershell/files/4652337/1589910870-8c153114-8590-4b1f-a3af-f31bcd83a35a1589910867420.zip)
[1589911142-471de95c-9aa2-4be8-a228-d5161deca21b1589911139246.zip](https://github.com/PowerShell/vscode-powershell/files/4652338/1589911142-471de95c-9aa2-4be8-a228-d5161deca21b1589911139246.zip)
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
### PSES version: 2.1.0.0
### PowerShell version:
Name Value
---- -----
PSVersion 7.0.1
PSEdition Core
GitCommitId 7.0.1
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Issue Description
When I start a debugging session for a PowerShell script that contains a syntax error, such as:
# this script has a syntax error, I know!
@[PSCustomObject]@{
Name = Value
Name2 =
}
the session hangs.
If I manage to break it using Ctrl+C, the Terminal pane endlessly fills up with (?) prompts -- see video
[Edit: with Windows PowerShell 5.1 this quickly ends with Process is terminated due to StackOverflowException.
]
This repro's both with the release (2020.4.0) and preview (2020.5.0) versions of the PowerShell extension.
Expected Behaviour
The debugging session should report that the script has a syntax error and stop.
Actual Behaviour
The session hangs.
Attached Logs
1589910870-8c153114-8590-4b1f-a3af-f31bcd83a35a1589910867420.zip
1589911142-471de95c-9aa2-4be8-a228-d5161deca21b1589911139246.zip
Metadata
Metadata
Assignees
Labels
Area-DebuggingIssue-BugA bug to squash.A bug to squash.Resolution-FixedWill close automatically.Will close automatically.