summaryrefslogtreecommitdiff
path: root/perldb.man
blob: 483b02e2d3f0e66e0bd90f9a7b3fec7c8e42e529 (plain)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.rn '' }`
''' $Header: perldb.man,v 2.0 88/06/05 00:09:50 root Exp $
''' 
''' $Log:	perldb.man,v $
''' Revision 2.0  88/06/05  00:09:50  root
''' Baseline version 2.0.
''' 
''' 
.de Sh
.br
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp
.if t .sp .5v
.if n .sp
..
.de Ip
.br
.ie \\n.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
'''
'''     Set up \*(-- to give an unbreakable dash;
'''     string Tr holds user defined translation string.
'''     Bell System Logo is used as a dummy character.
'''
.tr \(*W-|\(bv\*(Tr
.ie n \{\
.ds -- \(*W-
.if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
.if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
.ds L" ""
.ds R" ""
.ds L' '
.ds R' '
'br\}
.el\{\
.ds -- \(em\|
.tr \*(Tr
.ds L" ``
.ds R" ''
.ds L' `
.ds R' '
'br\}
.TH PERLDB 1 LOCAL
.SH NAME
perldb - Perl Debugger
.SH SYNOPSIS
.B perldb [-o output] perlscript arguments
.SH DESCRIPTION
.I Perldb
is a symbolic debugger for
.I perl
scripts.
Run your script just as you normally would, only prepend \*(L"perldb\*(R" to
the command.
(On systems where #! doesn't work, put any perl switches into the #! line
anyway\*(--perldb will pass them off to perl when it runs the script.)
Perldb copies your script to a temporary file, instrumenting it in the process
and adding a debugging monitor.
It then executes the instrumented script for
you and stops at the first statement so you can set any breakpoints or actions
you desire.
.PP
There is only one switch: \-o, which tells perldb to put its temporary file
in the filename you specify, and to refrain from deleting the file.
Use this switch if you intend to rerun the instrumented script, or want to
look at it for some reason.
.PP
These are the debugging commands:
.Ip s 8
Single step.
Subsequent carriage returns will single step.
.Ip c 8
Continue.
Turns off single step mode and runs till the next break point.
Subsequent carriage returns will continue.
.Ip <CR> 8
Repeat last s or c.
.Ip "l min-max" 8
List lines in the indicated range.
.Ip "l line" 8
List indicated line.
.Ip l 8
List the whole program.
.Ip L 8
List breakpoints.
.Ip t 8
Toggle trace mode.
Trace mode causes lines to be printed out as they are executed.
.Ip "b line" 8
Set breakpoint at indicated line.
.Ip "d line" 8
Delete breakpoint at indicated line.
.Ip d 8
Delete breakpoint at this line.
.Ip "a line command" 8
Set an action for indicated line.
The command must be a valid perl command, except that a missing trailing ;
will be supplied.
.Ip q 8
Quit.
.Ip command 8
Execute command as a perl statement.
A missing trailing ; will be supplied if necessary.
.SH ENVIRONMENT
No environment variables are used by perldb.
.SH AUTHOR
Larry Wall <lwall@jpl-devvax.Jpl.Nasa.Gov>
.SH FILES
/tmp/pdb$$	temporary file for instrumented script
.SH SEE ALSO
perl	
.SH DIAGNOSTICS
.SH BUGS
.rn }` ''