Is there any way to single step through shell scripts? ie is there a GDB equivalent for /bin/sh ?
B balanga Mar 8, 2021 #1 Is there any way to single step through shell scripts? ie is there a GDB equivalent for /bin/sh ?
A a6h Mar 8, 2021 #2 sh -x or set -x More info: sh(1) X - Shell echo flag | grymoire.com P.S. Also -v : shell writes its input to standard error as it is read. -- quote from man page
sh -x or set -x More info: sh(1) X - Shell echo flag | grymoire.com P.S. Also -v : shell writes its input to standard error as it is read. -- quote from man page
D Deleted member 66267 Guest Mar 8, 2021 #3 balanga said: Is there any way to single step through shell scripts? ie is there a GDB equivalent for /bin/sh ? Click to expand... bash seems to have a debugger. You could search for it. I think it will also work for plain sh script since bash is a superset of it anyway.
balanga said: Is there any way to single step through shell scripts? ie is there a GDB equivalent for /bin/sh ? Click to expand... bash seems to have a debugger. You could search for it. I think it will also work for plain sh script since bash is a superset of it anyway.