How to track the execution process of ruby program
问题 I am new to ruby and I want to track the execution process of ruby program when I feel confused about some programs. I wonder whether there is a way to help me track just as shell scripts set -x do? PS: Such as shell script test.sh: set -x ls /home echo "hello dujun and haotianma!" when I execute test.sh, then the output will be like: + ls /home dujun haotianma + echo 'hello dujun and haotianma!' hello dujun and haotianma! Just as how this bash script echos each statement before executing it,