Add script to dump debug infomation.