Debug¶
类位于 Infernux.debug
描述¶
调试工具类。
description
静态方法¶
| 方法 | 描述 |
|---|---|
static Debug.log(message: Any, context: Any = ...) → None |
输出日志消息到控制台。 |
static Debug.log_warning(message: Any, context: Any = ...) → None |
输出警告消息到控制台。 |
static Debug.log_error(message: Any, context: Any = ..., source_file: str = ..., source_line: int = ...) → None |
输出错误消息到控制台。 |
static Debug.log_exception(exception: Exception, context: Any = ...) → None |
Log an exception to the console. |
static Debug.log_assert(condition: bool, message: Any = ..., context: Any = ...) → None |
Assert a condition and log if it fails. |
static Debug.clear_console() → None |
Clear all messages in the debug console. |
static Debug.log_internal(message: Any, context: Any = ...) → None |
Log an internal engine message (hidden from user by default). |
static_methods
示例¶
example
另请参阅¶
see_also