Lines Matching full:debug
35 // The typical use of a Writer is to call Init, maybe call Debug,
44 debug io.Writer
54 // Debug causes the writer to print a debugging trace to out
57 func (w *Writer) Debug(out io.Writer) {
58 w.debug = out
68 if w.debug != nil {
78 if w.debug != nil {
97 if w.debug != nil {
98 fmt.Fprintf(w.debug, "gcprog: ptr at %d\n", index)
124 if w.debug != nil {
125 fmt.Fprintf(w.debug, "gcprog: repeat %d × %d\n", n, c)
151 if w.debug != nil {
152 fmt.Fprintf(w.debug, "gcprog: advance to %d by literals\n", index)
160 if w.debug != nil {
161 fmt.Fprintf(w.debug, "gcprog: advance to %d by repeat\n", index)
173 if w.debug != nil {
174 fmt.Fprintf(w.debug, "gcprog: append prog for %d ptrs\n", n)
175 fmt.Fprintf(w.debug, "\t")
184 if w.debug != nil {
186 fmt.Fprintf(w.debug, " ")
188 fmt.Fprintf(w.debug, "%02x", x)
192 if w.debug != nil {
193 fmt.Fprintf(w.debug, "\n")
271 if w.debug != nil {
272 fmt.Fprintf(w.debug, "gcprog: flush %d literals\n", w.nb)
273 fmt.Fprintf(w.debug, "\t%v\n", w.b[:w.nb])
274 fmt.Fprintf(w.debug, "\t%02x", byte(w.nb))
281 if w.debug != nil {
282 fmt.Fprintf(w.debug, " %02x", bits)
289 if w.debug != nil {
290 fmt.Fprintf(w.debug, " %02x", bits)
294 if w.debug != nil {
295 fmt.Fprintf(w.debug, "\n")