Skip to content

Add output messages to debug visualizer, tied to natvis diagnostics level (VS16)#284

Merged
Scottj1s merged 7 commits into
masterfrom
scottj1s_postusermessage
Apr 5, 2019
Merged

Add output messages to debug visualizer, tied to natvis diagnostics level (VS16)#284
Scottj1s merged 7 commits into
masterfrom
scottj1s_postusermessage

Conversation

@Scottj1s

@Scottj1s Scottj1s commented Apr 4, 2019

Copy link
Copy Markdown
Member

Resolved an intermittent issue with winrt::hstring not visualizing due to missing COMBase!HSTRING__ symbol
Added copious diagnostic output to help with any remaining failures

fixes #280, #281

@Scottj1s Scottj1s requested a review from devhawk as a code owner April 4, 2019 21:13
// and add to the database dynamically. RoGetMetaDataFile looks for types in the current process
// so cannot be called directly.
void load_type_winmd(WCHAR const* processPath, std::string runtimeTypeName)
void LoadMetadata(DkmProcess* process, WCHAR const* processPath, std::string typeName)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::string const&

{
// If something goes wrong, just fail to display object/property. Don't take down VS.
NatvisDiagnostic(pVisualizedExpression,
L"Exception in cppwinrt_visualizer::GetChildren", NatvisDiagnosticLevel::Error, to_hresult());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better. :)

@Scottj1s Scottj1s merged commit 50fbb4b into master Apr 5, 2019
@Scottj1s Scottj1s deleted the scottj1s_postusermessage branch April 24, 2019 17:16
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.

debug visualization for winrt::hstring does not work reliably

2 participants