root@ubuntu:~/controller101# dlv attach 39568 Type 'help' for list of commands. (dlv) b controller.enqueue Breakpoint 1 (enabled) set at 0xad7f10 for github.com/cloud-native-taiwan/controller101/pkg/controller.(*Controller).enqueue() ./pkg/controller/controller.go:133 (dlv) c > github.com/cloud-native-taiwan/controller101/pkg/controller.(*Controller).enqueue() ./pkg/controller/controller.go:133 (hits goroutine(30):1 total:1) (PC: 0xad7f10) Warning: debugging optimized function 128: return true 129: } 130: return true 131: } 132: => 133: func (c *Controller) enqueue(obj interface{}) { 134: key, err := cache.MetaNamespaceKeyFunc(obj) 135: if err != nil { 136: utilruntime.HandleError(err) 137: return 138: } (dlv) bt 0 0x0000000000ad7f10 in github.com/cloud-native-taiwan/controller101/pkg/controller.(*Controller).enqueue at ./pkg/controller/controller.go:133 1 0x0000000000ad9558 in github.com/cloud-native-taiwan/controller101/pkg/controller.(*Controller).enqueue-fm at ./pkg/controller/controller.go:133 2 0x0000000000aca538 in k8s.io/client-go/tools/cache.(*ResourceEventHandlerFuncs).OnAdd at /opt/gopath/pkg/mod/k8s.io/client-go@v0.0.0-20191005115821-b1fd78950135/tools/cache/controller.go:198 3 0x0000000000ac89e0 in k8s.io/client-go/tools/cache.(*processorListener).run.func1.1 at /opt/gopath/pkg/mod/k8s.io/client-go@v0.0.0-20191005115821-b1fd78950135/tools/cache/shared_informer.go:658 4 0x0000000000aaf050 in k8s.io/apimachinery/pkg/util/wait.ExponentialBackoff at /opt/gopath/pkg/mod/k8s.io/apimachinery@v0.0.0-20191005115455-e71eb83a557c/pkg/util/wait/wait.go:292 5 0x0000000000ac8b88 in k8s.io/client-go/tools/cache.(*processorListener).run.func1 at /opt/gopath/pkg/mod/k8s.io/client-go@v0.0.0-20191005115821-b1fd78950135/tools/cache/shared_informer.go:652 6 0x0000000000aaf774 in k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1 at /opt/gopath/pkg/mod/k8s.io/apimachinery@v0.0.0-20191005115455-e71eb83a557c/pkg/util/wait/wait.go:152 7 0x0000000000aaed10 in k8s.io/apimachinery/pkg/util/wait.JitterUntil at /opt/gopath/pkg/mod/k8s.io/apimachinery@v0.0.0-20191005115455-e71eb83a557c/pkg/util/wait/wait.go:153 8 0x0000000000ac3dc4 in k8s.io/apimachinery/pkg/util/wait.Until at /opt/gopath/pkg/mod/k8s.io/apimachinery@v0.0.0-20191005115455-e71eb83a557c/pkg/util/wait/wait.go:88 9 0x0000000000ac3dc4 in k8s.io/client-go/tools/cache.(*processorListener).run at /opt/gopath/pkg/mod/k8s.io/client-go@v0.0.0-20191005115821-b1fd78950135/tools/cache/shared_informer.go:650 10 0x0000000000aca3e8 in k8s.io/client-go/tools/cache.(*processorListener).run-fm at /opt/gopath/pkg/mod/k8s.io/client-go@v0.0.0-20191005115821-b1fd78950135/tools/cache/shared_informer.go:644 11 0x0000000000aaf6d4 in k8s.io/apimachinery/pkg/util/wait.(*Group).Start.func1 at /opt/gopath/pkg/mod/k8s.io/apimachinery@v0.0.0-20191005115455-e71eb83a557c/pkg/util/wait/wait.go:71 12 0x00000000000719b4 in runtime.goexit