debug.DebugMode 枚举
模块: cc
调试模式
索引
NONEINFOWARNERRORINFO_FOR_WEB_PAGEWARN_FOR_WEB_PAGEERROR_FOR_WEB_PAGE
Details
NONE
禁止模式,禁止显示任何日志信息。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/CCDebug.js:273 |
INFO
信息模式,在 console 中显示所有日志。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/CCDebug.js:281 |
WARN
警告模式,在 console 中只显示 warn 级别以上的(包含 error)日志。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/CCDebug.js:289 |
ERROR
错误模式,在 console 中只显示 error 日志。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/CCDebug.js:297 |
INFO_FOR_WEB_PAGE
信息模式(仅 WEB 端有效),在画面上输出所有信息。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/CCDebug.js:305 |
WARN_FOR_WEB_PAGE
警告模式(仅 WEB 端有效),在画面上输出 warn 级别以上的(包含 error)信息。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/CCDebug.js:313 |
ERROR_FOR_WEB_PAGE
错误模式(仅 WEB 端有效),在画面上输出 error 信息。
| meta | description |
|---|---|
| 类型 | Number |
| 定义于 | cocos2d/core/CCDebug.js:321 |