A static closure to provide easy access to the console without having errors if the console doesn't exist to use call: Debug.log('Your log here')
_colorClosure
hex
Due to the way closures and variables work, _colorClosure returns the color logging function needed for the color that you pass it.
hex
String
Hex value to apply to CSS color
_remoteLog
message
[level=0]
[stack]
Send a remote log message using the socket connection
The instance of debug for chaining
aqua
message
Output a general log colored as aqua
message
The message to log
The instance of debug for chaining
assert
truth
params
Assert that something is true
truth
Boolean
As statement that is assumed true
params
The message to error if the assert is false
The instance of debug for chaining
blue
message
Output a general log colored as blue
message
The message to log
The instance of debug for chaining
clear
Method to clear the console
The instance of debug for chaining
connect
host
Connect to the WebSocket
host
String
The remote address to connect to, IP address or host name
If a connection was attempted
debug
params
Debug something in the console or remote
params
The statement or object to debug
The instance of debug for chaining
dir
params
Method to describe an object in the console
params
Object
The object to describe in the console
The instance of debug for chaining
error
params
Error something in the console or remote
params
The statement or object to error
globalErrorHandler
message
file
line
column
error
Global window error handler, used for remote connections.
gray
message
Output a general log colored as gray
message
The message to log
The instance of debug for chaining
green
message
Output a general log colored as green
message
The message to log
The instance of debug for chaining
group
params
Starts a new logging group with an optional title. All console output that
occurs after calling this method and calling Debug.groupEnd()
appears in
the same visual group.
params
Optional parameters to log
The instance of debug for chaining
groupCollapsed
params
Creates a new logging group that is initially collapsed instead of open,
as with Debug.group()
.
params
Optional parameters to log
The instance of debug for chaining
groupEnd
Starts a new logging group with an optional title. All console output that occurs after calling this method and calling console.groupEnd() appears in the same visual group.
The instance of debug for chaining
info
params
Info something in the console or remote
params
The statement or object to info
The instance of debug for chaining
lime
message
Output a general log colored as lime
message
The message to log
The instance of debug for chaining
log
params
Log something in the console or remote
params
The statement or object to log
The instance of debug for chaining
maroon
message
Output a general log colored as maroon
message
The message to log
The instance of debug for chaining
navy
message
Output a general log colored as navy
message
The message to log
The instance of debug for chaining
olive
message
Output a general log colored as olive
message
The message to log
The instance of debug for chaining
orange
message
Output a general log colored as orange
message
The message to log
The instance of debug for chaining
pink
message
Output a general log colored as pink
message
The message to log
The instance of debug for chaining
purple
message
Output a general log colored as purple
message
The message to log
The instance of debug for chaining
red
message
Output a general log colored as red
message
The message to log
The instance of debug for chaining
removeCircular
obj
Strip out known circular references
obj
Object
The object to remove references from
silver
message
Output a general log colored as silver
message
The message to log
The instance of debug for chaining
teal
message
Output a general log colored as teal
message
The message to log
The instance of debug for chaining
trace
params
Generate a stack track in the output
params
Optional parameters to log
The instance of debug for chaining
_palette
List of hex colors to create Debug shortcuts for. Each key will become a function Debugkey that outputs the message in the specified color to the console if the browsers allows colored logging. Color Palette pulled from "Better CSS Defaults" (https://github.com/mrmrs/colors)
lineLocationFinder
Regular expression to get the line number and column from a stack trace line.
methodsToStrip
Methods names to use to strip out lines from stack traces in remote logging.
minLogLevel
The minimum log level to show, by default it's set to show all levels of logging.