API Documentation for: 1.0.1
Show:

Debug Class

Defined in: Debug:3

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

Item Index

Methods

Properties

Methods

assert

(
  • truth
  • params
)
public static

Defined in assert:445

Assert that something is true

Parameters:

  • truth Bool

    As statement that is assumed true

  • params

    The message to error if the assert is false

clear

() public static

Defined in clear:477

Method to clear the console

connect

(
  • The
)
public static

Defined in connect:137

Connect to the WebSocket

Parameters:

  • The String

    IP address to connect to

debug

(
  • params
)
public static

Defined in debug:361

Debug something in the console or remote

Parameters:

  • params

    The statement or object to debug

dir

(
  • params
)
public static

Defined in dir:462

Method to describe an object in the console

Parameters:

  • params Object

    The object to describe in the console

disconnect

() public static

Defined in disconnect:168

Disconnect from the WebSocket

error

(
  • params
)
public static

Defined in error:424

Error something in the console or remote

Parameters:

  • params

    The statement or object to error

globalErrorHandler

(
  • THe
  • The
  • The
)
private static

Global window error handler

Parameters:

info

(
  • params
)
public static

Defined in info:382

Info something in the console or remote

Parameters:

  • params

    The statement or object to info

log

(
  • params
)
public static

Defined in log:340

Log something in the console or remote

Parameters:

  • params

    The statement or object to log

onClose

() private static

Defined in onClose:222

Callback for when the websocket is closed

onConnect

() private static

Defined in onConnect:183

Callback when the WebSocket is connected

output

(
  • level
  • args
)
private static

Defined in output:242

Sent to the output

Parameters:

  • level String

    The log level

  • args String

    Additional arguments

remoteLog

(
  • message
  • level
)
public static

Defined in remoteLog:258

Send a remote log message using the socket connection

Parameters:

  • message String

    The message to send

  • level Level

    The log level to send

trace

(
  • params
)
public static

Defined in trace:493

Generate a stack track in the output

Parameters:

  • params

    Optional parameters to log

warn

(
  • params
)
public static

Defined in warn:403

Warn something in the console or remote

Parameters:

  • params

    The statement or object to warn

Properties

_isConnected

Bool private static

Defined in _isConnected:104

If the web socket is connected

Default: false

_isJSConsole

Bool private static

Defined in _isJSConsole:87

If the console is currently connected with JSConsole (jsconsole.com).

_messageObj

Object private static

Defined in _messageObj:121

The current message object being sent to the WebSocket

_messageQueue

Array private static

Defined in _messageQueue:129

The WebSocket message queue

_NET_PORT

Int private static

Defined in _NET_PORT:95

Browser port for the websocket browsers tend to block ports

Default: 1025

_socket

WebSocket private static

Defined in _socket:113

The socket connection

DEBUG

Int final static

Defined in DEBUG:29

Log level for debug messages

enabled

Bool public static

Defined in enabled:70

Boolean to turn on or off the debugging

ERROR

Int final static

Defined in ERROR:53

Log level for error messages

GENERAL

Int final static

Defined in GENERAL:21

The most general default debug level

hasConsole

Bool private

Defined in hasConsole:13

If we have a console

INFO

Int final static

Defined in INFO:37

Log level for debug messages

minLogLevel

Int public static

Defined in minLogLevel:61

The minimum log level to show, by default it's set to show all levels of logging.

output

JQuery public static

Defined in output:78

The jQuery element to output debug messages to

WARN

Int final static

Defined in WARN:45

Log level for warning messages