Sign in Join
FPDoc Onlineexperiment

DbgSName function

In unit LazLoggerBase

Generates a message with the optional name and class type for the specified object.

Declaration

pascal
function DbgSName(const p: TObject): string; overload

Arguments

p

TObject instance examined in the routine.

Function result

Formatted message with the optional name and class type for the specified value.

Description

DbgSName generates a log message with the optional name and class type for the object in p.

When p has not been assigned, the return value contains:

'Nil'

When p is a TComponent descendant, the return value contains a value like:

TComponent.Name + ':' + TComponent.ClassName

Otherwise, the return value is set to:

TObject.ClassName

If the LazLogger_Dummy unit has been included in the application, the return value is an empty string.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.