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

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

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

dbtestfunc(x)