The R Project SVN R

Rev

Rev 59039 | Rev 66751 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61150
Line 5... Line 5...
5
% Distributed under GPL 2 or later
5
% Distributed under GPL 2 or later
6
 
6
 
7
\name{debug}
7
\name{debug}
8
\title{Debug a Function}
8
\title{Debug a Function}
9
\usage{
9
\usage{
10
debug(fun, text="", condition=NULL)
10
debug(fun, text = "", condition = NULL)
11
debugonce(fun, text="", condition=NULL)
11
debugonce(fun, text = "", condition = NULL)
12
undebug(fun)
12
undebug(fun)
13
isdebugged(fun)
13
isdebugged(fun)
14
}
14
}
15
\alias{debug}
15
\alias{debug}
16
\alias{debugonce}
16
\alias{debugonce}
Line 73... Line 73...
73
  function is invoked.
73
  function is invoked.
74
 
74
 
75
  In order to debug S4 methods (see \code{\link{Methods}}), you
75
  In order to debug S4 methods (see \code{\link{Methods}}), you
76
  need to use \code{\link{trace}}, typically calling \code{\link{browser}},
76
  need to use \code{\link{trace}}, typically calling \code{\link{browser}},
77
  e.g., as \cr
77
  e.g., as \cr
78
  \code{trace("plot", browser, exit=browser, signature = c("track", "missing"))}
78
  \code{trace("plot", browser, exit = browser, signature = c("track", "missing"))}
79
 
79
 
80
  The number of lines printed for the deparsed call when a function is
80
  The number of lines printed for the deparsed call when a function is
81
  entered for debugging can be limited by setting
81
  entered for debugging can be limited by setting
82
  \code{\link{options}(deparse.max.lines)}.
82
  \code{\link{options}(deparse.max.lines)}.
83
 
83