5.12 Fixing errors: Interactive debugger
When do we use?
- You have identified the error using
traceback
and want to figure out what’s causing it.
- You have identified the error using
Use the interactive debugger to debug your code
Two ways to launch the debugger:
Add a call to
browser()
in your source codeThis can also be done using a conditional statement
- Add an RStudio breakpoint by clicking to the left of the line number