Support debug option and improve gtagslabel option