Skip to content

Instantly share code, notes, and snippets.

@anataliocs
Last active May 6, 2026 16:22
Show Gist options
  • Select an option

  • Save anataliocs/9edfc4a8f5ef892ddd568a08e6df6e60 to your computer and use it in GitHub Desktop.

Select an option

Save anataliocs/9edfc4a8f5ef892ddd568a08e6df6e60 to your computer and use it in GitHub Desktop.
shell script debug mode to see what line it fails on
# 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