Last active
May 6, 2026 16:22
-
-
Save anataliocs/9edfc4a8f5ef892ddd568a08e6df6e60 to your computer and use it in GitHub Desktop.
shell script debug mode to see what line it fails on
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # add to top of file | |
| PS4='+ [${BASH_SOURCE}:${LINENO}] ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' | |
| set -x # Enable debug mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment