getting a full stack back trace in a catch block
Gerard Choinka
gerard.choinka at googlemail.com
Fri May 1 05:38:27 CDT 2009
Hi,
how do i get a full stack back trace in an catch block, lasterror
gives me only the first occurrence of the error,
e.g.
function foo() error("an error"); end
function bar() foo(); end
try bar(); catch disp(lasterror()); end
gives me only
{
message = error: an error
identifier =
stack =
{
file =
name = foo
line = 1
column = 16
}
}
when i just call bar() i'm getting in addition the information that
foo was called from bar
bar()
error: an error
error: called from `foo'
error: called from `bar'
i'm running octave 3.0.1 - octave 3.0.3 on linux and windows
Gerard Choinka
More information about the Help-octave
mailing list