WheretIB / LuaDkmDebugger

Visual Studio C++ debugger extensions for Lua
MIT License
81 stars 32 forks source link

Can not install by Visual Studio 2022 #21

Open ancientcc opened 2 years ago

ancientcc commented 2 years ago

Use "Extensions"--"Manage Extensions", I can install LuaDkmDebugger by Visual Studio 2019. Now I use 2022, Use "Extensions"--"Manage Extensions" can not find LuaDkmDebugger.

How can I use it on Visual Studio 2022?

WheretIB commented 2 years ago

I will need to update the extension to target the new Visual Studio.

I'm working on it.

WheretIB commented 2 years ago

Fixed in 8302af072864ba4855977575020f92e6b36d54c9 Released in https://github.com/WheretIB/LuaDkmDebugger/releases/tag/v0.9.9

Use the LuaDkmDebugger17.vsix file to install. If I understand correctly, Extension Marketplace doesn't support extensions that work in both VS 2019 and VS 2022 yet. Microsoft promises to add support for this, so in the future you will be able to find the extension from Manage Extensions. But for now, you have to install manually.

ancientcc commented 2 years ago

I downloaded LuaDkmDebugger.vsix,, but install fail. Below is error log.


2021/11/20 8:17:20 - Microsoft VSIX Installer 2021/11/20 8:17:20 - ------------------------------------------- 2021/11/20 8:17:20 - vsixinstaller.exe version: 2021/11/20 8:17:20 - 17.0.5226-preview5 2021/11/20 8:17:20 - ------------------------------------------- 2021/11/20 8:17:20 - Command line parameters: 2021/11/20 8:17:20 - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\movie\LuaDkmDebugger.vsix 2021/11/20 8:17:20 - ------------------------------------------- 2021/11/20 8:17:20 - Microsoft VSIX Installer 2021/11/20 8:17:20 - ------------------------------------------- 2021/11/20 8:17:20 - Initializing Install... 2021/11/20 8:17:21 - 扩展详细信息... 2021/11/20 8:17:21 - Identifier : LuaDkmDebugger.e3e2ef04-27c9-46a6-ad45-79bd29067eb6 2021/11/20 8:17:21 - Name : C++ debugger extensions for Lua 2021/11/20 8:17:21 - Author : WheretIB 2021/11/20 8:17:21 - Version : 0.9.9 2021/11/20 8:17:21 - Description : This extension adds integrated debugging for Lua scripts executing inside C++ applications with Lua library. 2021/11/20 8:17:21 - Locale : en-US 2021/11/20 8:17:21 - MoreInfoURL : 2021/11/20 8:17:21 - InstalledByMSI : False 2021/11/20 8:17:21 - SupportedFrameworkVersionRange : [4.5,) 2021/11/20 8:17:21 - 2021/11/20 8:17:21 - SignatureState : Unsigned 2021/11/20 8:17:21 - 支持的产品 : 2021/11/20 8:17:21 - Microsoft.VisualStudio.Community 2021/11/20 8:17:21 - Version : [15.0,17.0) 2021/11/20 8:17:21 - ProductArchitecture : x86 2021/11/20 8:17:21 - Microsoft.VisualStudio.Pro 2021/11/20 8:17:21 - Version : [15.0,17.0) 2021/11/20 8:17:21 - ProductArchitecture : x86 2021/11/20 8:17:21 - Microsoft.VisualStudio.Enterprise 2021/11/20 8:17:21 - Version : [15.0,17.0) 2021/11/20 8:17:21 - ProductArchitecture : x86 2021/11/20 8:17:21 - 2021/11/20 8:17:21 - 引用 : 2021/11/20 8:17:21 - 系统必备 : 2021/11/20 8:17:21 - ------------------------------------------------------- 2021/11/20 8:17:21 - Identifier : Microsoft.VisualStudio.Component.CoreEditor 2021/11/20 8:17:21 - Name : Visual Studio core editor 2021/11/20 8:17:21 - Version : [15.0,) 2021/11/20 8:17:21 - 2021/11/20 8:17:21 - ------------------------------------------------------- 2021/11/20 8:17:21 - Identifier : Microsoft.VisualStudio.Debugger 2021/11/20 8:17:21 - Name : Visual Studio Debugger 2021/11/20 8:17:21 - Version : [15.0,) 2021/11/20 8:17:21 - 2021/11/20 8:17:21 - 签名详细信息... 2021/11/20 8:17:21 - Extension is not signed. 2021/11/20 8:17:21 - 2021/11/20 8:17:21 - 正在搜索适用的产品... 2021/11/20 8:17:21 - 找到的已安装产品 - 全局位置 2021/11/20 8:17:21 - 找到的已安装产品 - Visual Studio Enterprise 2022 Current 2021/11/20 8:17:21 - VSIXInstaller.NoApplicableSKUsException: 此扩展不能安装在任何当前安装的产品上。 在 VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData) 在 VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData) 在 VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported) 在 VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported) 在 VSIXInstaller.App.Initialize(Boolean isRepairSupported) 在 VSIXInstaller.App.Initialize() 在 System.Threading.Tasks.Task`1.InnerInvoke() 在 System.Threading.Tasks.Task.Execute() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

idbrii commented 11 months ago

Use the LuaDkmDebugger17.vsix file to install.

FYI, this confused me too. I assumed LuaDkmDebugger.vsix would be vs2022 (the latest) and LuaDkmDebugger17.vsix would be vs2017.

@WheretIB Could you rename or mention that LuaDkmDebugger17.vsix has vs2022 support in the text above the downloads on the releases page.

Once I installed LuaDkmDebugger17.vsix (which prompted to install for VS2022), then I could successfully see lua lines in my callstacks again. Thanks for the great extension!