% This file provokes an error in an octave core function.

% activate debug on error
debug_on_error(true)
pkg load image

function dbtestfunc(x)
  % illegal parameters for imresize
  imresize([1]);
  % Debugger stops in function print_usage() instead of imresize where "error" command is calles.
endfunction

dbtestfunc(0)