File: tbreak.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 (70 lines) | stat: -rw-r--r-- 1,918 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
(dbg-test1.sh:22):
22:	x=22
+# Test temporary break
+# 
+### a simple temporary breakpoint...
+tbreak 23
One-time breakpoint 1 set in file dbg-test1.sh, line 23.
+info break
Num Type       Disp Enb What
1   breakpoint del  y   dbg-test1.sh:23
No watch expressions have been set.
+### continue to line 23...
+cont 
(dbg-test1.sh:23):
23:	y=23
+### on to line 25...
+step 4
(dbg-test1.sh:25):
25:	  ((x += i))
+### a temporary breakpoint here (line 25)...
+tbreak 
One-time breakpoint 2 set in file dbg-test1.sh, line 25.
+### another a temporary breakpoint at fn3...
+tbreak fn3
One-time breakpoint 3 set in file dbg-test1.sh, line 17.
+L 
Num Type       Disp Enb What
2   breakpoint del  y   dbg-test1.sh:25
3   breakpoint del  y   dbg-test1.sh:17
No watch expressions have been set.
No actions have been set.
+step 2
(dbg-test1.sh:25):
25:	  ((x += i))
+L 
Num Type       Disp Enb What
3   breakpoint del  y   dbg-test1.sh:17
No watch expressions have been set.
No actions have been set.
+### not not see line 25 above and not stop again. Continue to fn3...
+cont 
(dbg-test1.sh:17): 17: fn3() { +L No breakpoints have been set. No watch expressions have been set. No actions have been set. +### Should end but stay in debugger.. +cont
fn1 here
SOURCED LINENO 19
SOURCED BASH_SOURCE[0] dbg-test1.sub
SOURCED FN LINENO 5
FUNCNAME[0]: sourced_fn called from dbg-test1.sub at line 22
FUNCNAME[1]: source called from dbg-test1.sh at line 34
FUNCNAME[2]: source called from bashdb at line 277
FUNCNAME[3]: main called from bashdb at line 0
Debugged program terminated normally. Use q to quit or R to restart.
+### Try some commands that require a running debugger
+up 1
No stack.
+down 
No stack.
+frame 0
No stack.
+where 
No stack.
+info line
No line number information available.
+step 
The program is not being run.
+next 
The program is not being run.
+continue 
The program is not being run.
+### quitting...
+quit