how to debug .sh type script

Jerry freebsd.user at seibercom.net
Mon May 31 09:53:02 UTC 2010


On Mon, 31 May 2010 15:59:04 +0800
Aiza <aiza21 at comclark.com> articulated:

> Is there way to single step through each line of code and see the
> real values of the variables?

You did not indicate what language your script is written in. There are
quite a few sites that have information for debugging a Bash script.

http://bashdb.sourceforge.net/bashdb-man.html
http://www.tldp.org/LDP/abs/html/debugging.html
http://www.softpanorama.org/Scripting/Shellorama/bash_debugging.shtml
http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_03.html

There are lots of others. Just Google or Bing for it.

-- 
Jerry
FreeBSD.user at seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________


More information about the freebsd-questions mailing list