Debug printing inside the typechecker knot