Skip to content

Natvis support for hresult_error and array_view - #914

Merged
Kenny Kerr (kennykerr) merged 2 commits into
masterfrom
natvis
Apr 4, 2021
Merged

Natvis support for hresult_error and array_view#914
Kenny Kerr (kennykerr) merged 2 commits into
masterfrom
natvis

Conversation

@oldnewthing

Copy link
Copy Markdown
Member

hresult_error displays the wrapped hresult.

array_view displays the size and the first few elements. It expands to the elements in the view, in the form of an array.

hresult_error displays the wrapped hresult.

array_view displays the size and the first few elements.
It expands to the elements in the view, in the form of
an array.
@sylveon

Copy link
Copy Markdown
Contributor

Might be harder but it would be nice if hresult_error's natvis could display the restricted error information, if any, since sometimes you have a useless error code ("Catastrophic failure") but a good description of the issue in the stashed IRestrictedErrorInfo*

@oldnewthing

Copy link
Copy Markdown
Member Author

Yes, it would be nice. But it's also harder.

@kennykerr

Copy link
Copy Markdown
Collaborator

That would require a debugger extension for runtime execution of code, not something the natvis format itself supports.

@kennykerr
Kenny Kerr (kennykerr) merged commit 3d80b91 into master Apr 4, 2021
@kennykerr
Kenny Kerr (kennykerr) deleted the natvis branch April 4, 2021 01:11
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.

4 participants