Debugging Pilot with Delve First build pilot with GCFLAGS="all=-n -l": GCFLAGS="all=-N -l" DEBUG=1 HUB=docker.io/slandow TAG=slandow BUILD_IN_CONTAINER=1 make docker.pilot Then we can wrap that image in one that includes delve: