📄 watch1.right
字号:
(dbg-test1.sh:22):22: x=22+# Test of watchpoint handling+# +### Should fail since xyxxy is not defined...+watch xyxxyCan't set watch: no such variable xyxxy.+info breakNo breakpoints have been set.No watch expressions have been set.+### Test a simple breakpoint...+eval xx=1+watch xx 0: ($xx)==1 arith: 0+info breakNo breakpoints have been set.Num Type Enb Expression0 watchpoint y $xx+# +# Now try enable and disable+# +### Try testing enable/disable...+en 0wWatchpoint entry 0 already enabled so nothing done.+L No breakpoints have been set.Num Type Enb Expression0 watchpoint y $xxNo actions have been set.+dis 0WWatchpoint entry 0 disabled.+L No breakpoints have been set.Num Type Enb Expression0 watchpoint n $xxNo actions have been set.+### Try deleting nonexistent watchpoint...+delete 10wWatchpoint entry 10 doesn't exist so nothing done.+# +### Test display of watchpoints...+watche y > 25 1: (y > 25)==0 arith: 1+info breakNo breakpoints have been set.Num Type Enb Expression0 watchpoint n $xx1 watchpoint y y > 25+delete 0w+info breakNo breakpoints have been set.Num Type Enb Expression1 watchpoint y y > 25+delete 1w+info breakNo breakpoints have been set.No watch expressions have been set.+step (dbg-test1.sh:23):23: y=23+watch x 2: ($x)==22 arith: 0+restart -B -q -L .. -x restart2.cmd dbg-test1.shRestarting with: -B -q -L .. -x restart2.cmd dbg-test1.shWatchpoint : $x changed: old value: '22' new value: ''(bashdb:263):263: if (( $_Dbg_opt_linetrace )) ; then +# 2nd part of Restart test+l 263:==>if (( $_Dbg_opt_linetrace )) ; then 264: # No stepping.265: _Dbg_write_journal_eval "_Dbg_steps=-1" 266: BASHDB_QUIT_ON_QUIT=1267: else 268: # Set to skip over the next 4 statements269: _Dbg_write_journal_eval "_Dbg_steps=5" 270: fi271: set -o functrace272: if [[ -z $_Dbg_cmd ]] ; then +info breakNo breakpoints have been set.Num Type Enb Expression2 watchpoint y $x+cont (dbg-test1.sh:22):22: x=22+quit
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -