Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 598 Bytes

debugging.md

File metadata and controls

35 lines (24 loc) · 598 Bytes

Overview

  • TODO ...

  • TODO: printf +%v

  • TODO: fmt.Sprintf

  • TODO: fmt.Fprintf

  • TODO: reflect.Kind(...)

  • TODO: reflect.TypeOf(...)

Goland

  1. Set breakponts before running the binary

Goland - Remote process (eg. in container)

  1. TODO: start go based container, mount volume to src dir
  2. TODO: compile with -gcflags "all=-N -l"
  3. TODO: setup debug config in goland
  4. TODO: add breakpoint
  5. TODO: start process
TODO: improve this:
go build -gcflags "all=-N -l" -o
  1. see https://www.jetbrains.com/help/go/go-remote.html

Idioms

TODO ...

Other Resources

  1. TODO ...