【问题标题】:VsCode hangs/freezes with "Starting up powershell" in status barVsCode 挂起/冻结状态栏中的“正在启动 powershell”
【发布时间】:2020-10-21 06:56:24
【问题描述】:

有时启动 VsCode 来调试文件时,PowerShell 扩展挂起并且 VsCode 终端窗口有状态栏消息 Starting PowerShell。它永远不会超时,也永远不会崩溃,它只是停留在 Starting PowerShell:

这个问题会有各种各样的答案。让我从两个对我有用的解决方案开始。

【问题讨论】:

    标签: powershell debugging visual-studio-code freeze vscode-debugger


    【解决方案1】:

    确保所有其他 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 版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多