Function Reference
— Built-in Function: val = debug_on_error ()
— Built-in Function: old_val = debug_on_error (new_val)

Query or set the internal variable that controls whether Octave will try to enter the debugger when an error is encountered. This will also inhibit printing of the normal traceback message (you will only see the top-level error message).