▶ shell – How to debug a bash script? – Stack Overflow

How to debug a bash script?

Is there any way to debug a bash script? E.g something that prints a sort of execution log like “calling line 1”, “calling line 2” etc.

via shell – How to debug a bash script? – Stack Overflow.