In this video I show how to use the wrapr R package to trigger breakpoints in the RStudio visual debugger. I compare wrapping to use of dump.frames.
Roughly `dump.frames` catches the exception (so trying to step or continue re-throws, and arguments may have moved from their starting values) and `wrapr` catches the call causing the exception in a state prior to starting the calculation (so arguments should be at their starting values). We have found some cases where `wrapr` is a bit more convenient in how it interacts with the `RStudio` visual debugger.