Adding debug infos in the pre-tag-hook