1.3 Debug Mode - HimxhMC/HimDSL GitHub Wiki

1.3 调试模式 Debug Mode

这一节将教会你如何使用调试模式,快速查找错误等
This section will teach you how to use the debugging mode to quickly find errors, etc.

怎么做 HOW TO DO?

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!