

The default install therefore behaves sanely without requiring bashdb, and the alternatives framework means that installing bashdb (whether from RHEL or third-party) then makes 'bash -debugger' magically start working. Any other package, such as 'bashdb', that intends to provide a debugger would also use the alternatives system to install a higher-priority variant of the symlink. Thus, the 'bash' package is in charge of installing a low-priority alternative that gets symlinked to /usr/bin/bashdb, and which blindly issues an error message along the lines of 'bash: debug script /usr/bin/bashdb not installed'. Go to Window -> Preferences -> Shell script -> Interpreters and ensure that interpreter is /bin/bash.

a=blob f=shell.c h=bbc8a66cc2ebb27162da8b36e87ff3d2e90e5bef hb=ca6a2ba40c709c2b45a56e49d21d0dfc66e21974#l1385īut I have a potential downstream solution that would work in spite of the upstream code: what if we use the alternatives system. Go to Run -> Debug configurations and create a new configuration under Bash script category.

Upstream bash currently uses the same mechanism for loading the debugger script as it does for other startup files, such as ~/.profile (look for maybe_execute_file): On the other hand, if we plan on allowing users to install their own debugger script, it would be nice if 'bash -debugger' could print an error message instead of silently behaving as if -debugger had not been specified, when the debugger script is not located. If we have no intention of supporting a debugger, it might be nice to configure bash so that it rejects -debugger instead of silently ignoring it. RHEL does not ship bashdb (but Fedora does, and so it is feasible that EPEL might someday do likewise), but DOES configure bash to turn on the -debugger option. In the shell scripting we dont have any debugger tool but with the help of command line options. A debugger is a tool that can run a program or script that enables you to examine the internals of the script or program as it runs. Bash can be configured to support a -debugger option that effectively sources a hard-coded debugger script (often /usr/bin/bashdb). In most of the programming languages debugger tool is available for debugging.
