DevOps

bashdb – source-code debugger for bash

bashdb, The Bash Debugger Project, is a source-code debugger for bash that follows the gdb command syntax.

The purpose of a debugger such as the BASH debugger is to allow you to see what is going on “inside” a bash script while it executes.

The BASH debugger can do four main kinds of things (plus other things in support of these) to help you find bugs:

  • Start your script, specifying anything that might affect its behavior.
  • Make your script stop on specified conditions.
  • Examine what has happened, when your script has stopped.
  • Change things in your script, so you can experiment with correcting the effects of one bug and go on to learn about another.

The command syntax generally follows that of the zsh debugger trepanning debuggers and, more generally, GNU debugger gdb.

Although you can use bashdb to debug scripts written in bash, it can also be used just as a front-end for learning more about programming in bash. As an additional aid, the debugger can be used within the context of an existing script with its functions and variables that have already been initialized; fragments of the existing can be experimented with by entering them inside the debugger.

Website: bashdb.sourceforge.net
Support: Documentation, SourceForge Project Page
Developer: Rocky Bernstein
License: GNU General Public License v2.0


Related Software

Debuggers
LLDBNext generation, high-performance debugger
GhidraSoftware reverse engineering framework
DelveSource level debugger for the Go programming language
GDBThe GNU Debugger
ValgrindA memory debugger and profiler
Radare2Portable reversing framework
BugStalkerRust debugger
XdebugExtension for PHP to aid debugging and development
SeerGUI frontend to GDB
iaitoGraphical interface for radare2
React Native DebuggerStandalone app for debugging React Native apps
KDbgGraphical user interface to GDB
straceDiagnostic, debugging and instructional userspace utility
rrRecord-and-replay debugger
drgnProgrammable debugger that puts scripting at the centre
cgdbLightweight console frontend to the GNU debugger
PuDBConsole-based visual debugger for Python
nndPartially inspired by RemedyBG
bashdbSource-code debugger for bash; follows the GDB command syntax
SysprofProfile an application or entire system
crashLinux kernel crash analysis utility
NemiverStandalone graphical debugger for GNOME

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted