1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
(dbg-test1.sh:4):
fn1 () { echo "fn1 here" x=5 fn3 }
+# Test break, watch, watche, step, next, continue and stack handling
+#
+### Try a simple display...
+display $x
0: $x
+break 23
Breakpoint 1 set in file dbg-test1.sh, line 23.
+break 25
Breakpoint 2 set in file dbg-test1.sh, line 25.
+continue
Breakpoint 1 hit.
(dbg-test1.sh:23):
for i in 0 1 3 do ((x += i)) done
0: $x = 22
+### Try disabling display ...
+disable display 0
Display entry 0 disabled.
+info display
Auto-display statements now in effect:
Num Enb Expression
0 0 $x
+step
(dbg-test1.sh:24):
((x += i))
+step
(dbg-test1.sh:24):
((x += i))
+### Try enabling display ...
+enable display 0
Display entry 0 enabled.
+info display
Auto-display statements now in effect:
Num Enb Expression
0 1 $x
+### Try display to show again status ...
+display
0: $x = 22
+info display
Auto-display statements now in effect:
Num Enb Expression
0 1 $x
+### Try undisplay to delete ...
+undisplay
** You need to pass in some display numbers.
+undisplay 0
Display entry 0 unset.
+info display
Auto-display statements now in effect:
Num Enb Expression
+step
(dbg-test1.sh:24):
((x += i))
+step
(dbg-test1.sh:26):
x=27
+### quitting...
+quit
|