Debugging

Theory

  • message just a generic notification as message

  • warning something could go wrong

  • error fatal error that stops execution

  • condition generic concept indicating something unexpected happened

Functions

  • traceback prints out the function call stack trace

  • debug flags function for debug mode

  • browser suspends execution and starts function in debug

  • trace allows insert debugging code into a function

  • recover allows to modify error behavior so function stact trace can be browsed

Examples

traceback

> mean(x)
Error in mean(x) : object 'x' not found
> traceback()
1: mean(x)

debug

And you continue to debugging window.

recover

Last updated

Was this helpful?