Skip to main content
Hitachi Vantara Lumada and Pentaho Documentation

debug

pentaho. debug

The debug namespace contains types that help managing the debugging state.

Source: doc-js/pentaho/debug/_namespace.jsdoc, line 17

Interfaces

Name Summary
IManager

The debug.IManager interface represents a manager of the debugging level for several code contexts.

Members

Name Description
Levels :  number

The Levels enum is the class of names for well known debugging levels.

manager :  pentaho.debug.IManager

The pentaho.debug.manager singleton provides access to the main debugging manager of the JavaScript Pentaho Platform.

Members Details

Levels:  number

The Levels enum is the class of names for well known debugging levels.

The enum also exposes a parse method.

Properties:
Name Default Value Description
none : number 0

The none debugging level represents the absence of information or not wanting to receive any.

error : number 1

The error debugging level represents error events.

exception : number 1

The exception is an alias for the error level.

warn : number 2

The warn debugging level represents events that could be a problem or not.

info : number 3

The info debugging level represents general information.

debug : number 4

The debug debugging level represents information that is relevant to actually debug an application.

log : number 4

The log debugging level is an alias for the debug level.

trace : number 5

The trace debugging level represents information with the same character as the debug level, but more detailed.

all : number Infinity

The all debugging level represents all information.

Source: javascript/web/pentaho/debug/Levels.js, line 53

manager:  pentaho.debug.IManager

The pentaho.debug.manager singleton provides access to the main debugging manager of the JavaScript Pentaho Platform.

The debugging levels can be configured through AMD as shown in the following example:

require.config({
  config: {
    "pentaho/debug": {
      // Default debugging level
      "level": "warn",

      // Per AMD module
      "modules": {
        "pentaho/lang/Base": "debug",
        "pentaho/type/Complex": 3  // <> "info"
      }
    }
  }
});

Source: javascript/web/pentaho/debug/manager.js, line 31