名称空间(Namespace): debug

x. debug

基于 Console 对象的调试跟踪工具

成员(Members)

<static> enableTimestamp

显示时间戳

方法(Methods)

<static> assert(expression)

断言
参数(Parameters):
名称 类型 描述
expression string 表达式

<static> error(object)

记录错误的日志消息
参数(Parameters):
名称 类型 描述
object object 对象

<static> log(object)

记录普通的日志消息
参数(Parameters):
名称 类型 描述
object object 对象

<static> time(name)

计时器
参数(Parameters):
名称 类型 描述
name string 计时器名称

<static> timeEnd(name)

停止计时器
参数(Parameters):
名称 类型 描述
name string 计时器名称

<static> warn(object)

记录警告的日志消息
参数(Parameters):
名称 类型 描述
object object 对象