debug go tests with dlv

Developer from somewhere

Useful info here:

  • run:
go test -c
  • then
dlv exec ./yourfile.test -- -test.run TestYourTestName
  • debug