Had to change it to drop the parantheses, then it worked, like this
trap 'read -p "[${BASH_SOURCE:-}:${LINENO:-}] ${BASH_COMMAND:-}"' DEBUG
Had to change it to drop the parantheses, then it worked, like this
trap 'read -p "[${BASH_SOURCE:-}:${LINENO:-}] ${BASH_COMMAND:-}"' DEBUG