Skip to content

Commit

Permalink
bash debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
cherkavi committed Jul 25, 2022
1 parent b6a7306 commit eb20ec3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
15 changes: 15 additions & 0 deletions debug-example.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# bash debugger: http://bashdb.sourceforge.net/
# https://sourceforge.net/projects/bashdb/files/bashdb/5.0-1.1.2/bashdb-5.0-1.1.2.tar.gz/download
# bash --debugger debug-example.sh

set -x # Display commands and their arguments as they are executed.
set -v # Display shell input lines as they are read.
set -e

echo "first line"
var1=1
var2=(1 2 3 4)
for each in ${var2[@]}; do
echo $each
done

0 comments on commit eb20ec3

Please sign in to comment.