File: brkpt2.cmd

package info (click to toggle)
bashdb 3.1.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,252 kB
  • ctags: 117
  • sloc: sh: 4,880; pascal: 3,186; lisp: 484; makefile: 315; ansic: 294
file content (87 lines) | stat: -rw-r--r-- 1,462 bytes parent folder | download
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
set trace-commands on
# Test break, watch, watche, step, next, continue and stack handling
#
###  Try a simple line number breakpoint...
break 23
info break
continue
info program
#
###  Try watch...
watch x
info watchpoints
c
info program
###  Try disable expression...
disable 1w
watche x > 26
info break
###  Continuing with a one-time line break (but will watch expression)...
cont 30
L
###  Try deleting a watchpoint...
delete 1W
L
###  Try break with a function...
break fn1
###  Stepping 2...
step 2
###  Try continue with a line number...
cont 34
info program
L
###  List stack frame...
where
###  Try up...
up
list
###  Try down 1...
down 1
list
###  frame 0...
frame 0
###  Try step (twice)...
step
info program
step
###  Try next and check that it jumps over fn3
next
###  Try continue file:line (but will hit another breakpoint)...
cont ./dbg-test1.sh:35
step 2
T
step 10
T
###  Try x command...
x j
###  Try continue break no args (here)...
break
cont
###  another x command...
x j
###  another x command (+5 than value above) ...
x j+5
###  x command of string y
x y
###  x of a function ...
x fn2
###  Bad x expressions ...
x bogus
x bogus+
x fn2+fn3
x fn2+3
###  another continue. Count on breakpoint should go up.
cont
print "j: $j, name: $name"
###  Try disable of break 
disable 5
L
cont
### Test temporary break and its reporting
cont 13
info program
###  Should hit end of script but stay in debugger...
cont
info files
###  quitting...
quit