Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Stroika::Foundation::Debug::Visualizations Namespace Reference

Classes

struct  StringRep
 

Functions

u8string ToStdString (const u8string &a)
 tons of overloads declared inside CPP file. This is not meant to be called directly by any C++ code, but only to be called from the debugger, which can see those defitions (either via direct invocation or through the .natvis mechanism).
 

Detailed Description

Only purpose of this is for debugger, since most debuggers support natively visualizing wstring

Function Documentation

◆ ToStdString()

u8string Stroika::Foundation::Debug::Visualizations::ToStdString ( const u8string &  a)

tons of overloads declared inside CPP file. This is not meant to be called directly by any C++ code, but only to be called from the debugger, which can see those defitions (either via direct invocation or through the .natvis mechanism).

Note
- if calls to this function in the debugger don't work, try calling Visualizations::ForceInclude() - from the application main - to force its related code to get linked in.

As a temporary hack (looking to do better) - you can call –LGP 2024-10-20 Stroika::Foundation::Debug::Visualizations::ToStdString(v) on many Stroika types (like VariantValue) to view them in most debuggers

NOTE - this sometimes doesn't work with ASAN, so you may need to disable ASAN to use this.

Definition at line 45 of file Visualizations.cpp.