Skip to content
Prev 307393 / 398506 Next

Modern Symbolic debugger for R programmes?

On Tue, Oct 9, 2012 at 12:12 AM, Worik R <worikr at gmail.com> wrote:
trace("f", quote(browser()), 3)

will set a breakpoint at line 3 of function f and

body(f)

will list the body of f showing where the browser command was added.

Of course you could also edit the source of f and just insert a
browser() command yourself.