I would like to trace a shell script for debugging purposes without having to modify its source code (e.g. change the shebang or insert a
set -x at the beginning). It is a dpkg postinst script, so not actually called by myself on the shell.
In hope of finding an environment variable for this I searched the man page for
dash, but could not find anything.
Is there some way to do this?