Re: cli plugin debugging

Dieu Cao <dcao@...>

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

Hope that helps!


On Jul 14, 2017 9:47 AM, "David Gu" <sysintelligent(a)> 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": "",
"program": "${fileDirname}",
"env": {},
"args": ["basic-plugin-command"],
"showLog": true

Join { to automatically receive all group messages.