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
When using the powershell.debugging.createTemporaryIntegratedConsole setting, if you use Ctrl+C to cancel a running script the PowerShell debugger does not stop; it stays running until you manually stop it. This also prevents you from rerunning the script until you manually stop the debugger.
This is the same as issue #3700 that was fixed, except it still occurs when the createTemporaryIntegratedConsole setting is enabled.
PowerShell Version
Name Value---- -----PSVersion 7.4.1PSEdition CoreGitCommitId 7.4.1OS Microsoft Windows 10.0.19045Platform Win32NTPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}PSRemotingProtocolVersion 2.3SerializationVersion 1.1.0.1WSManStackVersion 3.0Name : Visual Studio Code HostVersion : 2024.0.0InstanceId : 7764663a-9b11-478d-90a6-4afd3d3fd09eUI : System.Management.Automation.Internal.Host.InternalHostUserInterfaceCurrentCulture : en-USCurrentUICulture : en-USPrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxyDebuggerEnabled : TrueIsRunspacePushed : FalseRunspace : System.Management.Automation.Runspaces.LocalRunspace
Notice that the script stopped running, but the PowerShell debugger is still running and must be manually stopped.
Visuals
Here is a gif showing the problem. You can see that the powershell.debugging.createTemporaryIntegratedConsole setting is enabled and that a temporary terminal is created after pressing F5 to start the script. After pressing Ctrl+C to stop the script, the debugger stays running until I manually click the stop button on the debugger toolbar.
Logs
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Summary
When using the
powershell.debugging.createTemporaryIntegratedConsole
setting, if you useCtrl
+C
to cancel a running script the PowerShell debugger does not stop; it stays running until you manually stop it. This also prevents you from rerunning the script until you manually stop the debugger.This is the same as issue #3700 that was fixed, except it still occurs when the
createTemporaryIntegratedConsole
setting is enabled.PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
powershell.debugging.createTemporaryIntegratedConsole
settings is enabled.Ctrl
+C
to cancel the script.Visuals
Here is a gif showing the problem. You can see that the
powershell.debugging.createTemporaryIntegratedConsole
setting is enabled and that a temporary terminal is created after pressingF5
to start the script. After pressingCtrl
+C
to stop the script, the debugger stays running until I manually click the stop button on the debugger toolbar.Logs
No response
The text was updated successfully, but these errors were encountered: