You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ Here, we have a debugger for Bash 5.2 and higher.
6
6
7
7
Other branches in this repository support earlier versions of Bash. For example, use branch 4.1 for Bash version 4.1.
8
8
9
-
The command syntax generally follows that of the [zsh debugger ](https://github.com/rocky/zshdb), trepanning debuggers and, more generally, GNU debugger *gdb*.
9
+
The command syntax generally follows that of the [zsh debugger ](https://github.com/rocky/zshdb), trepanning debuggers, and, more generally, GNU debugger *gdb*.
10
10
11
-
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:
11
+
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:
@@ -21,7 +21,7 @@ If bash isn't installed in a way that will find bashdb, then:
21
21
```
22
22
23
23
The downside here is that $0 will be "bashdb" not
24
-
bash-script-name. Also call stack will show the invocation to bashdb.
24
+
bash-script-name. Also acall stack will show the invocation to bashdb.
25
25
26
26
Finally, to invoke the debugger from the script
27
27
@@ -36,23 +36,22 @@ Finally, to invoke the debugger from the script
36
36
stop_here
37
37
```
38
38
39
-
An advantage of the above is that there is no overhead up until you
40
-
invoke the debugger. Typically for large bash programs like
39
+
An advantage of the above is that there is no overhead until you
40
+
invoke the debugger. Typically, for large bash programs like
41
41
configuration scripts, this is a big win.
42
42
43
43
*IMPORTANT NOTE IF YOU USE THE ABOVE TO DEBUG CONFIGURE SCRIPTS...*
44
44
45
45
stdin is closed by configure early on. This causes the debugger to quit.
46
-
You can get around this invoking a command script that sets debugger
47
-
up input and output. Run tty to figure out what the terminal tty is set to.
46
+
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.
48
47
49
48
```
50
49
$ tty
51
50
/dev/pts/3
52
51
$
53
52
```
54
53
55
-
Above it came out to */dev/pts/3*. Let's go with that. Put the folliwng
54
+
Above it came out to */dev/pts/3*. Let's go with that. Put the following
0 commit comments