This presentation teaches practical tips for debugging your Go programs while they are running in a container. In this talk I will cover various ways to get your debugging tools where they need to be and how to set up your system in order to properly debug containerized processes.
- Docker or Podman
- Go toolchain
- Delve debugger
This talk follows a progressive approach. We first learn how to debug on the host, and then continue to apply those skills to a container environment.
Learn how to let Delve compile and run your program Learn how to compile your program to best run under Delve
Learn how to setup your host system and container to debug properly Learn how to copy debugger into container and debug within that environment Learn how to remote debug in container environment