File: list.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 (52 lines) | stat: -rw-r--r-- 1,053 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
set trace-commands on
# Test of debugger 'list' command
#
### List default location
list 
### Should list next set of lines
l
#
# Should not see anything since we ran off the top
# 
list 999
#########################################################
### 'list file:line' and canonicalization of filenames...
list ./dbg-test1.sh:1
list ../test/dbg-test1.sh:20
list dbg-test1.sh:30
list ./dbg-test1.sh:999
list ./badfile:1
#########################################################
set trace-commands on
### list of functions...
list fn1
list bogus
#########################################################
### Testing window command..."
window 
###  Testing '.'
l . 
# 
# Should see lines up to current execution line.
###  Trying '-'...
-
###  Testing set/show listsize
show listsize
###  Setting listsize to 3...
set listsize 3
l 10
###  Window command...
w
p "- command..."
-
###  Setting listsize to 4...
set listsize 4
show listsize
l 10
###  Window command...
w
###  '-' command...
-
#<-This comment doesn't have a space after 
#the initial `#'
quit