GlobalWatchlistDebugger()

GlobalWatchlistDebugger

Constructor

new GlobalWatchlistDebugger() #

Debug interface to avoid using console.log directly everywhere

At least for now, we need client-side debugging. Messages sent here are added to the debugLog. If wgGlobalWatchlistDevMode is true, they are also printed to the console.

Source:

Methods

error(info, error) #

Parameters:

Name Type Description
info string

The error information

error Object

If an instanceof Error, it will be the error that is thrown, otherwise a new Error object will be constructed here

Source:

info(msg, extraInfoopt) #

Parameters:

Name Type Attributes Description
msg string

The debug message

extraInfo Object <optional>

Any additional information

Source: