DiviArea.Debug.group()

DiviArea.Debug.group(label)

When a label is specified, a new debug-group is started in the JS console. Only one group can be open at a time, so when calling the function a second time, the group will be closed again.

Params

label string, optional
Defines the group label which is displayed in the JS console.
When no label is specified, the group is ended

Returns

The function does not return anything.

Examples

// Enable debugging.
DiviAreaConfig.debug = true;

// Start a new debug group, log some details and close the group again.
DiviArea.Debug.group('Sample group');
DiviArea.Debug.info('Here is some debug information...'):
DiviArea.Debug.group();

Notes

This method does nothing when JS debugging is disabled.

More information on debug groups: https://developer.mozilla.org/en-US/docs/Web/API/Console/group https://developer.mozilla.org/en-US/docs/Web/API/Console/groupEnd

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Get in touch with us