On Thursday, 8 March 2018 12:32:42 UTC-4, Parthasarathi Kundu wrote: > > Hi, > How can I debug the unit tests in go ? Normal executible I debug with gdb > or delve. > I am running from command prompt go test -v ./test/... -run Test_Connect. > > Any thing better with ide ? > > Thanks > > I use delve for unit tests:
$ ~/go/bin/dlv test Type 'help' for list of commands. (dlv) b eth_test.go:49 Breakpoint 1 set at 0x5691fb for github.com/nerdralph/crypto/sha3.makeCacheFast() ./eth_test.go:49 (dlv) c > github.com/nerdralph/crypto/sha3.makeCacheFast() ./eth_test.go:49 (hits goroutine(1):1 total:1) (PC: 0x5691fb) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.