Re: cli plugin debugging


Dieu Cao <dcao@...>
 

Suggest asking this question in the #cli channel on the cloudfoundry slack
at cloudfoundry.slack.com

Hope that helps!

Dieu

On Jul 14, 2017 9:47 AM, "David Gu" <sysintelligent(a)gmail.com> wrote:

The error can be reproduced using basic_plugin.go. This time the message
is changed to "dial tcp: lookup tcp/basic-plugin-command: getaddrinfow: The
specified class was not found.". Is there something obvious I'm missing in
the debug configuration file? How do you debug the code in func (c
*BasicPlugin) Run(cliConnection plugin.CliConnection, args []string) ?

{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"port": 2345,
"host": "127.0.0.1",
"program": "${fileDirname}",
"env": {},
"args": ["basic-plugin-command"],
"showLog": true
}
]
}

Join {cf-dev@lists.cloudfoundry.org to automatically receive all group messages.