【问题标题】:Just in time debugger won't install in Visual Studio 2017即时调试器不会安装在 Visual Studio 2017 中
【发布时间】:2017-11-11 13:24:00
【问题描述】:

我正在尝试安装 VS '17,开始编程,并且教程告诉我安装一个包。问题是这个包包含 JustInTime。 Microsoft.VisualStudio.Debugger.JustInTime 出现时安装停止。

那我现在该怎么办?

Visual Studio install stop

【问题讨论】:

标签: visual-studio debugging jit


【解决方案1】:

解决方案 1
1. 点击取消,几分钟后它会要求更新 VS 安装程序。
2. 更新 Visual Studio 安装程序。
3. 重新启动您的电脑。安装程序将自动继续。

解决方案 2
1. 下载Process Explorer
2.杀死vs_installershell.exe下的进程PowerShell.exe
3. 安装程序将继续跳过 JustInTime
4. VS安装完成后需要手动安装JustInTime

解决方案 3
1. 将系统变量 __PSLockDownPolicy 的值更新为 1
2. 重启电脑
3.重启安装



PS:解决方案 3 对我有用
参考:Helpful link

【讨论】:

    【解决方案2】:

    暂停(冻结)?还是失败?就我而言(失败),事实证明这是powershell本身的问题。 Studio 安装程序在添加 JIT 调试器时生成的日志如下所示:

    The product failed to install the listed workloads and components due to one or more package failures.
    
    Incomplete components  Just-In-Time debugger (Microsoft.VisualStudio.Component.Debugger.JustInTime,version=15.0.26208.0)
    You can search for solutions using the information below...<snipLengthyExplanatoryText>...be able to find solutions or workarounds.
    
    Package 'Microsoft.VisualStudio.Debugger.JustInTime,version=15.0.26424.2' failed to install.
    
    Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.Debugger.JustInTime;PackageAction=Install;ReturnCode=-65536
    
    Impacted components
        Just-In-Time debugger (Microsoft.VisualStudio.Component.Debugger.JustInTime,version=15.0.26208.0)
    
    Log
        C:\Users\<yourUser>\AppData\Local\Temp\dd_setup_<datetime>_273_Microsoft.VisualStudio.Debugger.JustInTime.log
    
    Details
        Command executed: "c:\windows\syswow64\\windowspowershell\v1.0\powershell.exe"
        -ExecutionPolicy Bypass -InputFormat None -NoLogo -NonInteractive -NoProfile -Command "$ErrorActionPreference="""Stop""";$VerbosePreference="""Continue""";$Action="""Repair""";$AppId="""2763a993""";$Packages="""Microsoft.VisualStudio.Component.CoreEditor
        ...<snipLongListOfPackageNames>...""";[io.file]::ReadAllText("""C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.Debugger.JustInTime,version=15.0.26424.2\RegisterJustInTimeDebugger.ps1""") | Invoke-Expression; if (!$?) { exit 1603 } elseif ($LastExitCode) { exit $LastExitCode }"
            Return code: -65536
            Return code details: Unknown error (0xffff0000)
    

    如果您启动 dos 提示符(以管理员身份),运行“执行的命令”下列出的命令,您会看到以下错误:

    内部 Windows PowerShell 错误。加载托管 Windows PowerShell 失败,错误 80070002

    您可以通过将文件资源管理器打开到“C:\Windows\SysWOW64\WindowsPowerShell\v1.0”并重命名 powershell.exe.config 来解决此问题。从 dos 提示符重新运行您的 powershell 命令现在应该可以正常执行了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-22
      • 2018-02-09
      相关资源
      最近更新 更多