Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Here, we have a debugger for Bash 5.2 and higher.

Other branches in this repository support earlier versions of Bash. For example, use branch 4.1 for Bash version 4.1.

The command syntax generally follows that of the [zsh debugger ](https://github.com/rocky/zshdb), trepanning debuggers and, more generally, GNU debugger *gdb*.
The command syntax generally follows that of the [zsh debugger ](https://github.com/rocky/zshdb), trepanning debuggers, and, more generally, GNU debugger *gdb*.

There are 3 ways to get into the debugger. If bash (with debugger support enabled which is the default) is installed and the debugger are *both* installed properly. Then:
There are 3 ways to get into the debugger. If bash (with debugger support enabled, which is the default) is installed, and the debugger is installed properly. Then:

```
bash --debugger -- bash-script-name script-arg1 script-arg2...
Expand All @@ -21,7 +21,7 @@ If bash isn't installed in a way that will find bashdb, then:
```

The downside here is that $0 will be "bashdb" not
bash-script-name. Also call stack will show the invocation to bashdb.
bash-script-name. Also acall stack will show the invocation to bashdb.

Finally, to invoke the debugger from the script

Expand All @@ -36,15 +36,14 @@ Finally, to invoke the debugger from the script
stop_here
```

An advantage of the above is that there is no overhead up until you
invoke the debugger. Typically for large bash programs like
An advantage of the above is that there is no overhead until you
invoke the debugger. Typically, for large bash programs like
configuration scripts, this is a big win.

*IMPORTANT NOTE IF YOU USE THE ABOVE TO DEBUG CONFIGURE SCRIPTS...*

stdin is closed by configure early on. This causes the debugger to quit.
You can get around this invoking a command script that sets debugger
up input and output. Run tty to figure out what the terminal tty is set to.
You can get around this by invoking a command script that sets up the debugger input and output. Run tty to figure out what the terminal tty is set to.

```
$ tty
Expand Down
4 changes: 3 additions & 1 deletion htdocs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ <h1>BASH Debugger</h1>
<a href="http://github.com/rocky/zshdb/tree/master/">Zsh</a> and the
<a href="http://github.com/rocky/kshdb/tree/master/">Korn Shell</a>.</p>

</p>Slightly related, there is cool debugger embedded im my fork of
</p>Slightly related, there is cool debugger embedded in my fork of
<a href="http://bashdb.sourceforge.net/remake">GNU Make</a>.</p>

</div>
Expand All @@ -179,6 +179,8 @@ <h2>Screenshots</h2>
<div style="clear: left;">&nbsp;</div>
<h2>Documentation</h2>
<ul>
<li><a href="https://sites.google.com/view/bashdboutlined/home">BASHDB
Reference</a> &ndash; Debugger documentation online in outline format from Rod Smith</li>
<li><a href="https://bashdb.readthedocs.io/en/latest/">BASHDB
Reference</a> &ndash; Debugger documentation on ReadTheDocs</li>
<li><a href="http://bashdb.sourceforge.net/bashdb-man.html">BASHDB
Expand Down
Loading
Loading