~/talk

Debugging Go: from zero to Kubernetes - Michele Caci

Talkat ContainerDays 2023 · 2023-09-11..09-13· [go, kubernetes]
slides:none on file

Step‑by‑step guide to use Delve to inspect Go programs locally, inside Docker, and inside Kubernetes: compile and start Delve with dlv debug main.go or use dlv exec / attach / dlv test on a PID; run a separate debugger container with Docker flags --pid and --cap-add=SYS_PTRACE to let the debugger see and trace the app process; avoid permanently shipping the ~500MB debugger image alongside a ~10MB app by launching an ephemeral container via kubectl debug --image=... --target=... --profile=Debug and then attach dlv to debug.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:06Talk overview and goals
  3. 2:52What is debugging
  4. 6:23Debugging tools overview
  5. 8:53Debugging Go locally with Delve
  6. 10:37Debugging Go in Docker containers
  7. 17:21Debugging Go in Kubernetes
  8. 23:26Summary and key takeaways
  9. 26:14Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.