We have debuggers for bash.
AIXmem is a tool to detect memory leaks in a IBM AIX C-development environment. AIX 'User Defined Malloc Replacement' is used to trace the memory allocation and freeing. --> Unfortunately i don't have time to make something useful out of this. :( <--
A multi-platform user interface to the GNU debugger, GDB, implemented using GDB/MI and the Qt 4 (GPL) framework. Supports GDB 6+ natively for GNU/Linux (X11), Windows (MinGW/GDI, Cygwin/X11), Mac OS X (Carbon), FreeBSD (X11), Solaris (X11), other Unices.
Extend the multi-thread capabilities of the gdb debugger. This targets POSIX threads implementations, although attempts to remain neutral with respect to the threads implementation. Creating a robust environment for thread debugging is the goal.
Trivial GDB (tgdb) is a library for making front ends to GDB using a simple API. Included with tgdb is a lightweight, but fully functional curses front end called cgdb.