Repository navigation
1.3 Debug Mode
这一节将教会你如何使用调试模式,快速查找错误等
This section will teach you how to use the debugging mode to quickly find errors, etc.
1 启动服务器 Start the server.
2 执行指令 Run this command:himdsl debug on.
3 执行指令 Run this command:himdsl run hello.dsl.
你将会看到一些调试输出。
You can see some debug information.
在未来的过程中调试模式将会在你的代码出现问题时给予很大帮助。它将可以显示计算,判断,循环,甚至递归的过程。由于脚本可以执行服务端指令,你可以尝试在脚本部分开启和关闭调试模式制造断点测试的效果,这样日志信息量不会太大。希望您能在将来的学习中善用调试模式!
In the future process, the debugging mode will be of great help when there are problems in your code. It can display the processes of calculations, judgments, loops, and even recursion. Since the script can execute server-side instructions, you can try to turn the debugging mode on and off in the script section to create the effect of breakpoint testing, so that the amount of log information won't be too large. I hope you can make good use of the debugging mode in your future learning!
- 首页 / Home
- 安装与快速开始 / Installation & Quick Start
- 第一个脚本 / Your First Script
- 命令速查 / Command Reference
- 自动执行脚本 / Auto-run Scripts
- 定义函数 / Defining Functions
- 函数重载 / Function Overloading
- Lambda 表达式 / Lambda Expressions
- 函数式接口 / Functional Interfaces
- 选择器总览 / Selectors Overview
- 选择器过滤器 / Selector Filters
- EntityRef 引用 / EntityRef
- 占位符参考 / Placeholders Reference
- PlaceholderAPI 桥接 / PAPI Bridge
- 创建 GUI / Creating a GUI
- GUISlot 槽位 / GUISlot
- 点击回调 / Click Callbacks
- onClose 回调 / onClose Callback
- GUI 刷新 / GUI Refresh
- 数学函数 / Math Built-ins
- 高精度计算 / BigDecimal Built-ins
- 字符串函数 / String Built-ins
- 集合函数 / Collection Built-ins
- 文件 I/O / File I/O
- 命令与 sleep / Commands & sleep