update debug handler