command.right

来自「bash debugger. You can use this tool to 」· RIGHT 代码 · 共 66 行

RIGHT
66
字号
(dbg-test1.sh:22):22:	x=22+# Debugger test of 'command' command+# +# Try to set command when there is none.+command 1No breakpoint number 1.+# +# Now a command for a real breakpoint+break 23Breakpoint 1 set in file dbg-test1.sh, line 23.+command 1Type commands for when breakpoint 1 hit, one per line.+# +############################## +# Should see value of x below+# from the command statment+break 25Breakpoint 2 set in file dbg-test1.sh, line 25.+continue Breakpoint 1 hit (1 times).+x xdeclare -- x="22"(dbg-test1.sh:23):23:	y=23+# +############################# +# Test of a changing+# command statement. First+# The setup.+############################## +command 2Type commands for when breakpoint 1 hit, one per line.+continue Breakpoint 2 hit (1 times).+print x is now $xx is now 22(dbg-test1.sh:25):25:	  ((x += i))+#################################### +# Now we'll change the it+#################################### +command 2Type commands for when breakpoint 1 hit, one per line.+continue Breakpoint 2 hit (2 times).+print "testing overwriting commands"testing overwriting commands(dbg-test1.sh:25):25:	  ((x += i))+#################################### +# Should have seen the testing message+# above, not x.+## FIXME: theres a weird bug+## in evaluating expressions like $i+# Now let's remove the command+# altogether+#################################### +command 2Type commands for when breakpoint 1 hit, one per line.+continue Breakpoint 2 hit (3 times).(dbg-test1.sh:25):25:	  ((x += i))+quit 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?