I am trying to debug a bash function.
Is it possible to print all the commands executed by a bash function? I know that it is possible to print all the commands by a bash script by changing
#!/bin/bash
to
#!/bin/bash -x
How do I get the same effect for a bash function?
Thank you.