Just in time the debugger won't install in Visual Studio 2017

I am trying to install VS'17 to start programming and the tutorial told me to install the package. The point is that this package contains JustInTime. Installation pauses when Microsoft.VisualStudio.Debugger.JustInTime appears.

So what should I do now?

Installing a Visual Studio installation

+3


source to share


2 answers


Solution 1
1. Click "Cancel", after a few minutes it will ask you to update the VS installer.
2. Update the Visual Studio installer.
3. Restart your computer. The installer will automatically continue working.

Solution 2
1. Download Process Explorer
2. Kill the PowerShell.exe process under vs_installershell.exe
3. The installer will resume skipping JustInTime
4. After the VS installation is complete, you must manually install JustInTime

Solution 3
1. Update the __ PSLockDownPolicy system variable to 1
2. Restart your computer
3. Restart the PS installation : Solution 3 worked for me REF:

enter image description here


Useful link



+1


source


Closes (freezes)? Or fails? In my case (bad luck) it turned out to be a problem with powershell itself. The log generated by the studio installer when adding the JIT debugger looks like this:

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)

      

If you run a dos prompt (as admin), run the command listed in the Command Run section and you will see this error:



Internal Windows PowerShell error. Boot Managed Windows PowerShell with Error 80070002

You can work around this by opening a file explorer for "C: \ Windows \ SysWOW64 \ WindowsPowerShell \ v1.0" and renaming powershell.exe.config. Re-executing the powershell command from the dos prompt should run without error.

0


source







All Articles