Skip to content

Does the perl language have an equivalent to browser?

2 messages · Patrick Connolly, Andrew Perrin

#
I'm asking on this list because the question will be more easily
understood than on a Perl list.  Lots of talented people using R also
know how to use Perl, so it's easier to ask them.

Running a Perl script with the -d switch can do some pretty neat
things, but as far as I can tell, every line has to be done
individually.  Is there a way to specify where to stop in the way
browser() does in the S language?

best
#
I don't know exactly what browser() does, but when you run perl -d use the
c command to follow through the script:

c <linenumber> # continue until reaching line <linenumber>

Or, set one or more breakpoints:
b <linenumber>
b <sub name>

and then use:

c

to continue to the next breakpoint.

Use d to delete a breakpoint.

Answers to this and much more can be found using perldoc perldebug.

ap

----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
clists at perrin.socsci.unc.edu * andrew_perrin (at) unc.edu
On Fri, 4 Oct 2002, Patrick Connolly wrote:

            
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._