问题:
Goland日志打印不完整,输出多条换行,在运行窗口过于窄时,位于前部分的日志打印会被截断,导致日志无法显示完整;
解决方案:
找到Goland安装目录,以我的为例
D:\softWare\GoLand 2022.3\bin
找到idea.properties文件,修改配置的idea.cycle.buffer.size属性为disabled
#---------------------------------------------------------------------
# This option controls console cyclic buffer: keeps the console output size not higher than the specified buffer size (KiB).
# Older lines are deleted. In order to disable cycle buffer use idea.cycle.buffer.size=disabled
#---------------------------------------------------------------------
idea.cycle.buffer.size=disabled
重启编译器之后,界面的设置界面会变更为如图,可以设置控制台命令历史记录大小值