Goland adding extra "--" if I would like to add Programm Arguments and run in Debug mode ?

I would like to add some command line argument and run program in Debug mode with this arguments, but looks like Goland adding extra “--” chart to the arguments.

 

0
1 comment

Hi there,

Thank you for your question. The two ‘--’ are added here automatically as this is a standard convention of passing arguments when debugging with delve. Practically, if we shorten your example to something like  ./macarm/dlv --listen 124.0.0.1 -- --ca-cert  , everything before the ‘--’ will be treated as arguments passed to dlv in order for it to run, and everything after (--ca-cert) - as program arguments necessary for the code's execution.

I hope my explanation makes some sense.

0

Please sign in to leave a comment.