(dbg-test1.sh:22):
22:	x=22
+# Test of watchpoint handling
+#
+### Should fail since xyxxy is not defined...
+watch xyxxy
** Can't set watch: no such variable xyxxy.
+info watch
No watch expressions have been set.
+### Test a simple breakpoint...
+eval xx=1
$? is 0
+watch xx
 0: ($xx)==1 arith: 0
+info watch
Num Type       Enb  Expression
------------------------------
0   watchpoint y    $xx
+#
+# Now try enable and disable
+#
+### Try testing enable/disable...
+enable 0w
Watchpoint entry 0 already enabled so nothing done.
+L
No breakpoints have been set.
Num Type       Enb  Expression
------------------------------
0   watchpoint y    $xx
No actions have been set.
+disable 0W
Watchpoint entry 0 disabled.
+L
No breakpoints have been set.
Num Type       Enb  Expression
------------------------------
0   watchpoint n    $xx
No actions have been set.
+### Try deleting nonexistent watchpoint...
+delete 10w
Watchpoint entry 10 doesn't exist so nothing done.
+#
+### Test display of watchpoints...
+watche y > 25
 1: (y > 25)==0 arith: 1
+info watch
Num Type       Enb  Expression
------------------------------
0   watchpoint n    $xx
1   watchpoint y    y > 25
+delete 0w
+info watch
Num Type       Enb  Expression
------------------------------
1   watchpoint y    y > 25
+delete 1w
+info watch
No watch expressions have been set.
+step
(dbg-test1.sh:23):
23:	y=23
+watch x
 2: ($x)==22 arith: 0
+restart -B --no-highlight --nx -L ../.. -q -x ../data/restart2.cmd ../example/dbg-test1.sh
Restarting with: /src/external-vcs/sourceforge/bashdb/bashdb -B --no-highlight --nx -L ../.. -q -x ../data/restart2.cmd ../example/dbg-test1.sh
Watchpoint 2: $x changed:
  old value: '22'
  new value: ''
(bashdb:106):
106:	set -o functrace
+# 2nd part of Restart test
+l>
106: => set -o functrace
107:    . "$_Dbg_script_file"
+info watch
Num Type       Enb  Expression
------------------------------
2   watchpoint y    $x
+cont
Watchpoint 2: $x changed:
  old value: ''
  new value: '22'
(dbg-test1.sh:23):
23:	y=23
+quit
bashdb: That's all, folks...
