Adding debug code to dpi service