Skip to content

Console Tool

Mike Rennie edited this page Aug 9, 2012 · 4 revisions

The console tool will only send any of the following events if they are enabled. By default the console tools are not enabled.

Clients can automatically turn on the console tool via a modified handshake.

onConsoleDebug

Fired when debug information is written to the console or console.debug() is used.

Content-Length:198
\r\n
tool:console
\r\n\r\n
{
  "type":"event",
  "event":"onConsoleDebug",
  "contextId":"xf0.3::8821652",
  "seq":127,
  "data":{
           "type":"object",
           "value":{
                     "0":{"type":"string","value":"foo"},
                     "constructor":{"type":"function","handle":21}
           }
  }
}

Event Data

value string
the value of the entry written to the Firebug console

onConsoleInfo

Fired when information is written to the console or console.info() is used.

Content-Length:197
\r\n
tool:console
\r\n\r\n
{
  "type":"event",
  "event":"onConsoleInfo",
  "contextId":"xf0.3::8821652",
  "seq":144,
  "data":{
           "type":"object",
           "value":{
                     "0":{"type":"string","value":"foo"},
                     "constructor":{"type":"function","handle":21}
           }
  }
}

Event Data

value string
the value of the entry written to the Firebug console

onConsoleLog

Fired when a log entry is written to the console or console.log() is used.

Content-Length:196
\r\n
tool:console
\r\n\r\n
{
  "type":"event",
  "event":"onConsoleLog",
  "contextId":"xf0.3::8821652",
  "seq":118,
  "data":{
           "type":"object",
           "value":{
                     "0":{"type":"string","value":"foo"},
                     "constructor":{"type":"function","handle":21}
           }
  }
}

Event Data

value string
the value of the entry written to the Firebug console

onConsoleWarn

Fired when a warning is written to the console or console.warn() is used.

Content-Length:197
\r\n
tool:console
\r\n\r\n
{
  "type":"event",
  "event":"onConsoleWarn",
  "contextId":"xf0.3::8821652",
  "seq":152,
  "data":{
           "type":"object",
           "value":{
                     "0":{"type":"string","value":"foo"},
                     "constructor":{"type":"function","handle":21}
           }
  }
}

Event Data

value string
the value of the entry written to the Firebug console