debug_xtrace

SYNOPSIS

debug_xtrace_on [fd] debug_xtrace_off

DESCRIPTION

debug_xtrace_on sets PS4 and then calls set -x.If fd is given sets BASH_XTRACEFD to fd.

debug_xtrace_off unsets BASH_XTRACEFD and thus closes the associated fd, resets PS4 to + and calls set +x