debug.lr(x)
undebug.lr(x)
is.debug(fn.name)
which.debug()
undebug.all()
describe(...)
"print"(x, ...)
"print"(x, ...)describe
function to get a full listing of the function. describe(fn, idx)
The 'debug.lr' and 'undebug.lr' functions are replacements for the built-in debug and undebug functions. They provide a mechanism to debug a complete function, which is compatible with the dispatching in lambda.r. The semantics are identical to the built-ins. Note that these functions will properly handle non-lambda.r functions so only one set of commands need to be issued.
Lambda.r keeps track of all functions that are being debugged. To see
if a function is currently set for debugging, use the is.debug
function. To see all functions that are being debugged, use
which.debug. It is possible to undebug all debugged functions
by calling undebug.all.
## Not run:
# f(x)
# debug.lr(f)
# which.debug()
# undebug.lr(f)
# ## End(Not run)
Run the code above in your browser using DataLab