Phone API Reference - Extended - util.debug
Desk Phone API features described in this section are deprecated and supported only on the following models: D40, d45, d50, d60, d62, d65, d70
util.debug
Description
Prints the supplied message to the standard output.  Use the App Development web page for your phone to view the output from debugging. For debugging objects, use the JSON.stringify function.Â
Â
Basic Example:Â
var testString = "Test Test";
util.debug(testString); // "Test Test";
 Â
var test = {};
util.debug(test); // "[object Object]";
util.debug(JSON.stringify(test)); // "{}" |
Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
message | Yes | string | Â | Message to be displayed. |
indent | No | integer | 0 | Number of tab stops to indent the message. |
Â
Examples
util.debug to print Hello World
util.debug('Hello World'); |
Â