Skip to content

Instantly share code, notes, and snippets.

@matejb
Created October 9, 2020 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matejb/8bf27d535be3e9292e7d0b6a6f8788c1 to your computer and use it in GitHub Desktop.
Save matejb/8bf27d535be3e9292e7d0b6a6f8788c1 to your computer and use it in GitHub Desktop.
bash debug trace
#!/bin/bash
# cp from https://twitter.com/b0rk/status/1312413117436104705
trap '(read -p "[$BASH_SOURCE:$LINENO] $BASH_COMMAND?")' DEBUG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment