Navigation

Operators and Keywords

Function List:

C++ API

: val = debug_on_error ()
: old_val = debug_on_error (new_val)
: debug_on_error (new_val, "local")

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).

When called from inside a function with the "local" option, the variable is changed locally for the function and any subroutines it calls. The original variable value is restored when exiting the function.

See also: debug_on_warning, debug_on_interrupt.

Package: octave