/
Phone API Reference - Extended - util.debug
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'); |
, multiple selections available,
Related content
Phone API Reference - Extended - util
Phone API Reference - Extended - util
More like this
Phone API Reference - Core digium.app.getList
Phone API Reference - Core digium.app.getList
More like this
Phone API Reference - Extended - util.isDef
Phone API Reference - Extended - util.isDef
More like this
Phone API Reference - Core - digium.phone.answer
Phone API Reference - Core - digium.phone.answer
More like this
Phone API Reference - Core - digium.app.getInfo
Phone API Reference - Core - digium.app.getInfo
More like this
Phone API Reference - Extended - util.forceArray
Phone API Reference - Extended - util.forceArray
More like this