PowerShell / vscode-powershell

Provides PowerShell language and debugging support for Visual Studio Code
https://marketplace.visualstudio.com/items/ms-vscode.PowerShell
MIT License
1.69k stars 481 forks source link

PowerShell crashes when you try to edit code while in Debug #1851

Closed PrzemyslawKlys closed 4 years ago

PrzemyslawKlys commented 5 years ago

System Details

System Details Output

### VSCode extensions:
aaron-bond.better-comments@2.0.3
aeschli.vscode-css-formatter@1.0.1
atomiks.moonlight@0.8.3
CoenraadS.bracket-pair-colorizer-2@0.0.28
donjayamanne.githistory@0.4.6
eamodio.gitlens@9.5.1
ecmel.vscode-html-css@0.2.0
emmanuelbeziat.vscode-great-icons@2.1.47
esbenp.prettier-vscode@1.8.1
GitHub.vscode-pull-request-github@0.6.0
GlenBuktenica.unicode-substitutions@2.0.1
HookyQR.beautify@1.4.11
johnpapa.vscode-peacock@2.0.1
Kelvin.vscode-sshfs@1.14.6
liximomo.remotefs@0.0.14
mechatroner.rainbow-csv@1.0.0
monokai.theme-monokai-pro-vscode@1.1.12
ms-vscode.powershell@1.12.0
ms-vscode.powershell-preview@2.0.1
ms-vsts.team@1.149.2
PKief.material-icon-theme@3.7.0
shd101wyy.markdown-preview-enhanced@0.3.13
WakaTime.vscode-wakatime@1.2.13
yzhang.markdown-all-in-one@2.2.0

### PSES version: 2.0.0.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      5.1.17763.316
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.316
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

PowerShell crashes if you try to do something during debug. Not sure it's the best case to edit during debug, but it seems to be allowed.

Expected Behaviour

Not crash.

Actual Behaviour

VSCodeCrash

Crashing.

Attached Logs

1554543640-7a4dbe0e-7e5f-43aa-abaf-158cc727338e1554542840440.zip

SydneyhSmith commented 5 years ago

@PrzemyslawKlys thanks for reporting this issue, it looks like this is related to the some of the threading issues we have been working to resolve.