-
Notifications
You must be signed in to change notification settings - Fork 264
Closed
Description
When the debug visualizer was first released with VS2017, it would expand nested runtime class properties. With VS2019/VS2022, this functionality no longer works.
Repro:
- Install the C++/WinRT VS extension in VS 2019 or VS 2022 (despite the name, it supports both).
- Create a simple C++/WinRT console app from the extension template, and add a query parameter to the uri:
#include "pch.h"
using namespace winrt;
using namespace Windows::Foundation;
int main()
{
init_apartment();
Uri uri(L"http://aka.ms/cppwinrt?foo=bar");
printf("Hello, %ls!\n", uri.AbsoluteUri().c_str());
}
- Set a BP on the printf
- Build and F5 to debug
- In a watch window, type "uri"
- Expand the visualization for uri
- Expand the nested visualization for the QueryParsed property
Expected results:
The QueryParsed.Size property should be displayed, with value '1'
Actual results:
No expansion of QueryParsed occurs.
Notes:
In debugging the app with VS2017, the expansion results in BPs on both cppwinrt_visualizer::GetChildren and cppwinrt_visualizer::GetItems being hit. But with VS2019/VS2022, only cppwinrt_visualizer::GetChildren gets called - cppwinrt_visualizer::GetItems is never called and no child items (properties) are displayed.
Metadata
Metadata
Assignees
Labels
No labels