1024programmer Java Gogland is slow to start debugging application

Gogland is slow to start debugging application

When I try to start Go Application in debug mode, Gogland takes a lot of time to start it. This can take several minutes and happens every time it is started, even without code changes.

1> Mark Robinson..:


The problem is that Gogland forces a rebuild on every debug call. So if you have a lot of dependencies, that will Very slow.

The solution is to go into Settings > Build, Execution, Deployment > Debugger and disable Rebuild transitive packages. This will make debug startup 20 times faster (90 seconds vs. 5 seconds).

You should create a Go Application target marked “Complete Rebuild” and set the Go Tool Arguments to -i -a. This will force a debug rebuild and store intermediate products to speed future builds.

However, this means that your caching and optimization, and therefore not the correct debugging information, can use the package in the debugger, which means it will affect your debugging experience. If you have any issues with the debugger, you need to first Run -a and see if the problem occurs again.

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/770719

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索