Skip to content

add winrt::com_ptr, winrt::param::hstring, winrt::...::IUnknown to .natvis file#477

Merged
Scottj1s merged 3 commits into
microsoft:masterfrom
ChrisGuzak:master
Jun 13, 2019
Merged

add winrt::com_ptr, winrt::param::hstring, winrt::...::IUnknown to .natvis file#477
Scottj1s merged 3 commits into
microsoft:masterfrom
ChrisGuzak:master

Conversation

@ChrisGuzak

Copy link
Copy Markdown
Member

this is minor but aids debugging.

I really want to fix winrt::implements too. I was able to improve WRL::RuntimeClass and think I might be able to apply that to this case but I need to play with it more. Scott, if you have ideas on that let me know.

@ChrisGuzak ChrisGuzak requested a review from Scottj1s as a code owner June 12, 2019 01:51
@Scottj1s

Copy link
Copy Markdown
Member

this is minor but aids debugging.

I really want to fix winrt::implements too. I was able to improve WRL::RuntimeClass and think I might be able to apply that to this case but I need to play with it more. Scott, if you have ideas on that let me know.

Yes, been thinking the visualizer should support not just projected types but implementations too. Unfortunately, that's all static natvis (not dynamic via GetRuntimeClassName, etc). So it would be a fairly hefty natvis file, but they do parse fairly quickly.

@ChrisGuzak ChrisGuzak changed the title add winrt::com_ptr to .natvis file add winrt::com_ptr, winrt::param::hstring, winrt::...::IUnknown to .natvis file Jun 13, 2019
@Scottj1s

Copy link
Copy Markdown
Member

winrt::param::hstring is fine

@jonwis

jonwis commented Jun 13, 2019

Copy link
Copy Markdown
Member

Consider adding some documentation on the wiki about how to use msvc's link.exe -natvis option. Makes debugging magically better.

@Scottj1s Scottj1s merged commit c54bb81 into microsoft:master Jun 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants