File: display.right

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 (71 lines) | stat: -rw-r--r-- 1,423 bytes parent folder | download | duplicates (2)
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
(dbg-test1.sh:22):
22:	x=22
+# Test break, watch, watche, step, next, continue and stack handling
+# 
+### Try a simple display...
+display echo $x
 0: echo $x
+break 23
Breakpoint 1 set in file dbg-test1.sh, line 23.
+break 25
Breakpoint 2 set in file dbg-test1.sh, line 25.
+cont 
Breakpoint 1 hit (1 times).
(dbg-test1.sh:23):
23:	y=23
 0 (echo $x): 22
+cont 
Breakpoint 2 hit (1 times).
(dbg-test1.sh:25):
25:	  ((x += i))
 0 (echo $x): 22
+### Try disabling display ...
+disable display 0
Display entry 0 disabled.
+info display
Display expressions:
Num Enb Expression          
0     0 echo $x
+step 
(dbg-test1.sh:24):
24:	for i in 0 1 3 ; do
+cont 
Breakpoint 2 hit (2 times).
(dbg-test1.sh:25):
25:	  ((x += i))
+### Try enabling display ...
+enable display 0
Display entry 0 enabled.
+info display
Display expressions:
Num Enb Expression          
0     1 echo $x
+### Try display to show again status ...
+display 
 0 (echo $x): 22
+cont 28
One-time breakpoint 3 set in file dbg-test1.sh, line 28.
Breakpoint 2 hit (3 times).
(dbg-test1.sh:25):
25:	  ((x += i))
 0 (echo $x): 23
+info display
Display expressions:
Num Enb Expression          
0     1 echo $x
+cont 
(dbg-test1.sh:28):
28:	y=b
 0 (echo $x): 27
+### Try undisplay to delete ...
+undisplay 0
+info display
No display expressions have been set.
+step 
(dbg-test1.sh:29):
29:	x=29
+step 
(dbg-test1.sh:30):
30:	echo $(fn3 30)
+### quitting...
+quit