Skip to content

Natvis for C++/WinRT doesn't work #2809

Description

@vmilea

Describe the bug

Natvis for C++/WinRT doesn't work because the *.winmd files aren't deployed alonside the process *.exe. This affects both SDK and user authored types.

Steps to reproduce the bug

  1. Create a solution from Blank App, Packaged (WinUI 3 in Desktop) template.
  2. Set a breakpoint in App::OnLaunched()
  3. Debug and pause at breakpoint.
  4. Try to inspect the LaunchActivatedEventArgs argument.

Expected behavior

The debug visualizer shows object properties based on metadata.

Screenshots

Screenshot 2022-08-02 121502

Notice the output message. To enable natvis diagnostics see documentation.

NuGet package version

1.1.3

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 21H2 (22000)

IDE

Visual Studio 2022

Additional context

A workaround is to manually copy the *.winmd files from Microsoft.WindowsAppSDK to the executable folder.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-DeveloperToolsIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationbugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions