You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy / paste the below commands into the PowerShell Integrated Terminal, and paste the output here
code -v
code : The term 'code' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the pa
th is correct and try again.
At line:1 char:1
+ code -v
+ ~~~~
+ CategoryInfo : ObjectNotFound: (code:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS S:\Prod> $pseditor.EditorServicesVersion
Major Minor Build Revision
----- ----- ----- --------
1 4 1 0
PS S:\Prod> code --list-extensions --show-versions
code : The term 'code' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the pa
th is correct and try again.
At line:1 char:1
+ code --list-extensions --show-versions
+ ~~~~
+ CategoryInfo : ObjectNotFound: (code:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Issue Description
When running a script in debug mode, put a breakpoint somewhere in the script and hit F5, it's still possible to type text in the editor. In other words, adding or changing the code in the script is allowed while the script halted at a breakpoint.
This should not be possible as it outputs strange things. To reproduce, create the following script:
At this point you can type something in the editor or just change Get-Process | Select-Object Name to Get-Process | Select-Object Name, ID. You will see that the debugger crashes the terminal and you are stuck with some text and no prompt:
The only workaround here is to close VS Code and restart it again. In PowerShell ISE the editor is correctly locked to avoid editing during debugging. This avoids issues like we experience now.
System Details
$PSVersionTable
:Name Value
PSVersion 4.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.42000
BuildVersion 6.3.9600.16406
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.2
Issue Description
When running a script in debug mode, put a breakpoint somewhere in the script and hit F5, it's still possible to type text in the editor. In other words, adding or changing the code in the script is allowed while the script halted at a breakpoint.
This should not be possible as it outputs strange things. To reproduce, create the following script:
Put a breakpoint on line 7 and hit

F5
:At this point you can type something in the editor or just change
Get-Process | Select-Object Name
toGet-Process | Select-Object Name, ID
. You will see that the debugger crashes the terminal and you are stuck with some text and no prompt:The only workaround here is to close VS Code and restart it again. In
PowerShell ISE
the editor is correctly locked to avoid editing during debugging. This avoids issues like we experience now.Log
logs.zip
The text was updated successfully, but these errors were encountered: