【发布时间】:2020-10-21 06:56:24
【问题描述】:
有时启动 VsCode 来调试文件时,PowerShell 扩展挂起并且 VsCode 终端窗口有状态栏消息 Starting PowerShell。它永远不会超时,也永远不会崩溃,它只是停留在 Starting PowerShell:
【问题讨论】:
标签: powershell debugging visual-studio-code freeze vscode-debugger
有时启动 VsCode 来调试文件时,PowerShell 扩展挂起并且 VsCode 终端窗口有状态栏消息 Starting PowerShell。它永远不会超时,也永远不会崩溃,它只是停留在 Starting PowerShell:
【问题讨论】:
标签: powershell debugging visual-studio-code freeze vscode-debugger
确保所有其他 Powershell 窗口都已关闭。
确认所有 Powershell 进程都在相关操作系统中终止,例如 Windows 中的任务管理器。
以管理员身份启动 VsCode。
如果系统提示您更新包管理器,请执行以下操作:
powershell.exe -NoLogo -NoProfile -Command 'Install-Module -Name PackageManagement -Force -MinimumVersion 1.4.6 -Scope CurrentUser -AllowClobber'
如果失败,在终端中运行 Powershell 命令,例如
Get-PSRepository
这将完成“启动 Powerhell”,在状态栏中您将看到 Powershell 版本。
【讨论】: