-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Feature RequestWorks in VSSo we'd need to fix it for VS Code to reach parity.So we'd need to fix it for VS Code to reach parity.debugger
Description
Environment
- OS and version: Windows 11 25H2
- VS Code: 1.109.5
- C/C++ extension: 1.30.5
- OS and version of remote machine (if applicable): n/a
- GDB / LLDB version: n/a
Bug Summary and Steps to Reproduce
Steps to Reproduce:
- Set up a launch.json to launch something with an MSIX execution alias using cppvsdbg debugger. A common one that many people have is installed is WinGet:
{
"version": "2.0.0",
"configurations": [
{
"name": "WinGet",
"type": "cppvsdbg",
"request": "launch",
"program": "winget.exe",
"args": [],
"console": "externalTerminal"
}
]
}- Press F5. Notice you get an error "Unable to start program 'C:\Users\username\AppData\Local\Microsoft\WindowsApps\winget.exe'. Not implemented.". But if you press CTRL+F5 it executes it fine in the correct package context.
Debugger Configurations
Launch.json:
{
"version": "2.0.0",
"configurations": [
{
"name": "WinGet",
"type": "cppvsdbg",
"request": "launch",
"program": "winget.exe",
"args": [],
"console": "externalTerminal"
}
]
}Debugger Logs
Unable to start debugging. Unable to start program 'C:\Users\...\AppData\Local\Microsoft\WindowsApps\MrBackgroundHost.exe'. Not implemented.Other Extensions
No response
Additional Information
For some background:
- MSIX app execution aliases are defined here: https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-uap5-appexecutionalias. They allow a packaged executable to be executed from command-line.
- App execution aliases are the only way we've found we can launch our product in its appropriate MSIX package context from VS/VSCode, which is how customers will run our executable too.
- Visual Studio does not have this problem and can launch/debug things through an app execution alias just fine (I do this with an NMake-style vcxproj).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Feature RequestWorks in VSSo we'd need to fix it for VS Code to reach parity.So we'd need to fix it for VS Code to reach parity.debugger