tb: A better 'base::traceback()'

Description Usage Arguments Details The custom error handler

View source: R/traceback.R

Description

Compared to base::traceback(), tb

Usage

1
2
3
tb(frame = NULL, context = 5)

bt(frame = NULL, context = 5)

Arguments

frame

If NULL, the stack trace is shown. If it is an integer referring to a frame in the stack, the source code of the corresponding call is shown.

context

Number of source code lines to show before and after the current line.

Details

bt is an alias to tb.

The custom error handler

tracer defines an error handler when loaded, via a call to options(error = tracer:::dumper). If you overwrite the error handler, then tb does not work properly. You can reinstate the tracer:::dumper error handler via an explicit call to options().


tracer documentation built on May 2, 2019, 5:53 a.m.