Harlan Harris provides an interactive introduction to more advanced debugging techniques using traceback(), trace() and debug(). This talk was presented to the NYC R Statistical Programming Meetup on June 3, 2010.
Code from Harlan's talk is available here:
http://gist.github.com/423333