Inline GDB Breakpoints
This tool searches your go source files for specially formatted comments and converts them to gdb breakpoints.
Example:
package main
import "fmt"
func main() {
for i := 0; i < 10; i++ {
fmt.Println("Hello World") //break if i == 5
}
}
Usage:
# debug application
$ gdbb
# debug tests
$ gdbbtest
Demo: