2 Getting in and out ¶
This chapter discusses how to start the BASH debugger, and how to get out of it.
The essentials are:
- type ‘bash --debugger script-name’ or ‘bashdb
script-name’ to start the BASH debugger. Or...
- type ‘bashdb -c command string’ to give a string to run
under the debugger. Or ..
- modify your program to enter the debugger at a particular point:
source ../bashdb-trace
and _Dbg_debugger
.
- type quit or C-d inside the debugger to exit.
There are also two front-ends available as well. An emacs front-end
which has bashdb support among others is https://github.com/rocky/emacs-dbgr/wiki.