brkpt2.cmd

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

CMD
88
字号
set trace-commands on# Test break, watch, watche, step, next, continue and stack handling####  Try a simple line number breakpoint...break 23info breakcontinueinfo program####  Try watch...watch xinfo watchpointscinfo program###  Try disable expression...disable 1wwatche x > 26info break###  Continuing with a one-time line break (but will watch expression)...cont 30L###  Try deleting a watchpoint...delete 1WL###  Try break with a function...break fn1###  Stepping 2...step 2###  Try continue with a line number...cont 34info programL###  List stack frame...where###  Try up...uplist###  Try down 1...down 1list###  frame 0...frame 0###  Try step (twice)...stepinfo programstep###  Try next and check that it jumps over fn3next###  Try continue file:line (but will hit another breakpoint)...cont ./dbg-test1.sh:35step 2Tstep 10T###  Try x command...x j###  Try continue break no args (here)...breakcont###  another x command...x j###  another x command (+5 than value above) ...x j+5###  x command of string yx y###  x of a function ...x fn2###  Bad x expressions ...x bogusx bogus+x fn2+fn3x fn2+3###  another continue. Count on breakpoint should go up.contprint "j: $j, name: $name"###  Try disable of break disable 5Lcont### Test temporary break and its reportingcont 13info program###  Should hit end of script but stay in debugger...continfo files###  quitting...quit

⌨️ 快捷键说明

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