r10399: bring in gd's better debug messages