Extract debug code into grunt-debug module.