[ADD] Added macro and configure option tfor enabling advanced debug