dongshengyin0147 2017-10-19 20:24
浏览 69
已采纳

Gogland启动调试应用程序很慢

When I try to launch a Go Application in debug mode, Gogland takes a considerable amount of time to launch it. This can take several minutes, and happens on each launch even if there has been no code change.

  • 写回答

1条回答 默认 最新

  • doufuxi7093 2017-10-19 20:24
    关注

    The problem is that Gogland forces a rebuild on each debug invocation. So if you have a lot of dependencies, it will be very slow.

    The solution is to go in to Settings > Build, Execution, Deployment > Debugger and disable Rebuild transitive packages. This will speed up debug launches by 20x (90s vs 5s).

    You should create a Go Application target labeled "Complete rebuild" and set the Go Tool Arguments to be -i -a. This will force a debug rebuild and store the intermediate products to speed up future builds.

    However, this means your cached and optimized, thus without proper debugging information, packages can be used in the debugger which means that it will affect your debugging experience. If you have any issues with the debugger you will need to run with -a first and see if the problem happens again.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 matlab有限元法求解梁带有若干弹簧质量系统的固有频率
  • ¥15 找一个网络防御专家,外包的
  • ¥100 能不能让两张不同的图片md5值一样,(有尝)
  • ¥15 informer代码训练自己的数据集,改参数怎么改
  • ¥15 请看一下,学校实验要求,我需要具体代码
  • ¥50 pc微信3.6.0.18不能登陆 有偿解决问题
  • ¥20 MATLAB绘制两隐函数曲面的交线
  • ¥15 求TYPCE母转母转接头24PIN线路板图
  • ¥100 国外网络搭建,有偿交流
  • ¥15 高价求中通快递查询接口