Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Dec 2017 23:41:42 +0100
From:      Sebastian Schwarz <seschwar@gmail.com>
To:        Stefan Esser <se@freebsd.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Working on FLAVOR support in portmaster
Message-ID:  <87h8swriop.fsf@domain.invalid>
In-Reply-To: <d041e1cc-b204-e2b4-ee0b-5d742b3787d1@freebsd.org>
References:  <20171209102517.005de250@gramr.alkumuna.eu> <17c98bad038d40d023c8e1e3f93fe160@udns.ultimatedns.net> <20171210184716.604de089@gramr.alkumuna.eu> <d041e1cc-b204-e2b4-ee0b-5d742b3787d1@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2017-12-10, Stefan Esser wrote:
> Debugging shell scripts is a lot of work, since you cannot
> single step through them.

There are a few shell debuggers:

- http://bashdb.sourceforge.net/
- https://github.com/rocky/kshdb/
- https://github.com/rocky/zshdb/

However none of them is for plain POSIX Bourne Shell.  But you
might be able to run the other shells in a appropriate
compatibility mode ("bash --posix" or "env POSIXLY_CORRECT=1
bash" for example).

I haven't use the debuggers extensively, so I don't know how
well they work.  But they might be of some use to you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87h8swriop.fsf>