开发首先要会Debug,这样会省很多时间和功夫!
Leaf框架拿到手,按照官方教程双击 xx.exe可以运行后,我还是不满足,必须要断点才舒服。
在man.go文件上右键 选择【Debug ‘go build main.go’】后
Console输出错误
open conf/server.json: The system cannot find the path specified.
原因是找不到conf/server.json
在Goland中debug,xxx.exe其实读取的是WorkingDirectory路劲地址而不是xxx.exe存在的OutputDirectory的地址。
懂的人一点就通!