Gogland:调试中存在冗余参数 ‘–‘

huangapple go评论65阅读模式
英文:

Gogland: debugging has redundant parameter '--'

问题

'Program arguments'为空,如下所示,

Gogland:调试中存在冗余参数 ‘–‘

但是当我开始调试时,末尾有一个'--'参数。

这个参数是从哪里来的,我该如何避免它?

Gogland:调试中存在冗余参数 ‘–‘

当我添加一些调试参数时,'--'仍然存在,就在程序名称和真正的参数之间。这会导致调试中断,因为程序不知道如何解释它。
Gogland:调试中存在冗余参数 ‘–‘

英文:

'Program arguments' is empty as below,

Gogland:调试中存在冗余参数 ‘–‘

but when I start debugging, there is a '--' parameter at end.

Where does the parameter come from, and how can I avoid it?

Gogland:调试中存在冗余参数 ‘–‘

When I add some debug parameters, the '--' is still there , just between program name and the real parameters. It will break the debugging, because program doesn't know how to interpret it.
Gogland:调试中存在冗余参数 ‘–‘

答案1

得分: 1

这是由IDE自动添加的,它的作用是将发送给delve的参数与发送给应用程序的参数分开。如果你没有任何参数,那么它是多余的,但它不会有害/不会打扰你。你目前在IDE方面有什么问题吗?

编辑:这个问题在新的EAP版本中已经修复,从EAP 8开始。

英文:

It is automatically added by the IDE and its there to separate the parameter sent to delve from the parameters sent to the application. In case you don't have any parameters then, as you say, it's redundant but it's not harmful / shouldn't bother you. Is there any problem that you currently have with the IDE?

Edit: This was fixed in the newer EAPs starting from EAP 8.

huangapple
  • 本文由 发表于 2017年5月25日 18:16:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/44177972.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定