All I 've found is something like python3 -m pdb myscript.py
but it does not do what set -x
does which executes the script and shows on terminal each line that gets executed with the actual values of the variables.
For example:
#!/bin/bash
set -x
echo "This is a foo message"
sshpass -p $2 ssh root@$1
echo "this is just argument no3 --> $3 :)"
So when you run the script with arguments you see what exactly gets done.
root@notebook:~# ./myscript.sh myserver.com mypassword bar
+ echo 'This is a foo message'
This is a foo message
+ sshpass -p mypassword ssh root@myserver.com
+ echo "this is just argument no3 --> bar :)"
this is just argument no3 --> bar :)