debugging td learning