File: bug-source.right

package info (click to toggle)
bashdb 4.0.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,820 kB
  • ctags: 942
  • sloc: sh: 10,581; lisp: 885; makefile: 449; ansic: 325
file content (31 lines) | stat: -rw-r--r-- 877 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
(dbg-test1.sh:22):
22:	x=22
+# Test to see that we read in files that mentioned in breakpoints
+# but we don't step into.
+continue 34
One-time breakpoint 1 set in file dbg-test1.sh, line 34.

fn1 here
(dbg-test1.sh:34):
34:	source ../example/dbg-test1.sub
+# It is important to "next" rather than "step"
+next 
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 157
FUNCNAME[3]: main called from bashdb at line 0
(dbg-test1.sh:35):
35:	exit 0;
+# The following breakpoint should cause
+# a file to get read in.
+break sourced_fn
Breakpoint 2 set in file dbg-test1.sub, line 3.
+info files
Source files for which have been read in:

dbg-test1.sh (36 lines)
dbg-test1.sub (29 lines)
+quit