debug: update debug to handle the new comparison features