Struct DebugManager#

Struct Documentation#

struct DebugManager#

A structure to hold variables that are useful for debugging.

Public Static Functions

static bool getUsageTrackingErrors()#

Get the value of usage tracking errors.

Usage tracking errors is used to enable/disable error messages when discarding variables. If true, it will print errors if the variable if still in use. If false, it will only print a warning, but will continue on anyway.

Returns:

Whether usage tracking errors is enabled or disabled.

static void setUsageTrackingErrors(bool enable)#

Set the value of usage tracking errors.

Usage tracking errors is used to enable/disable error messages when discarding variables. If true, it will print errors if the variable if still in use. If false, it will only print a warning, but will continue on anyway.

Parameters:

enable – If true, then enable usage tracking errors. If false, then disable it.

Public Static Attributes

static std::optional<size_t> all_destroyed_verbosity#

Number of messages printed by all destroyed. Nullopt will print them all.

static bool enable_locking_trace#

Boolean used to enable/disable tracing of LockingBase. Enabling this will print messages whenever a LockingBase is made current or stale. It will also print messages when new dependents are added. This affects all LockingBases.

Friends

friend class UsageTrackingMap