DevOps

bashdb – source-level debugger for Bash scripts

bashdb, the Bash Debugger Project, is a source-level debugger for examining the execution of Bash scripts.

It provides an interactive environment in which developers can pause scripts, inspect their state and investigate unexpected behaviour. Instead of relying entirely on diagnostic output inserted into a script, users can examine variables and execution paths while the script is running.

The debugger follows a command syntax similar to GDB, making many of its operations familiar to developers with experience of conventional source-level debugging.

bashdb is particularly useful when working with complex shell scripts containing functions, conditional logic and multiple execution paths. It can also be used as a learning tool for understanding how Bash evaluates and executes script statements.

This is free and open source software.

Key Features

  • Run Bash scripts under debugger control with the ability to pause and resume execution.
  • Set breakpoints to stop execution at selected locations within a script.
  • Use conditional breakpoints to investigate particular program states or execution paths.
  • Step through statements to examine how a script executes its commands and functions.
  • Inspect variable values and other information available within the current execution context.
  • Examine the call stack to understand the sequence of function calls leading to the current position.
  • Use debugger commands with syntax modelled on GDB and related debugging tools.
  • Modify variables and experiment with the effects of changes while investigating a problem.
  • Invoke the debugger from an existing script, allowing investigation after earlier initialisation has taken place.
  • Supports entering and evaluating script fragments within an established debugging context.
  • Provides facilities for debugging scripts without introducing debugger overhead before the debugger is invoked.
  • Can be integrated with supported development environments through available editor extensions.

Website: bashdb.sourceforge.net
Support:
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
KDbgGraphical user interface to GDB
straceDiagnostic, debugging and instructional userspace utility
rrRecord-and-replay debugger
gfLightweight GDB interface with source, stack and memory views
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
PINCEMemory scanning, process manipulation and reverse engineering
edbLow-level debugging with disassembly and register inspection
SysprofProfile an application or entire system
crashLinux kernel crash analysis utility

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted