Concatenates all your sources into one, but preserves original filenames and line numbers, so you can determine in what file error really located.
Consider you have two files script.sh and lib.sh, one sources another:
echo 1
source lib.sh
echo 3