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
- 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