|
From: | veryhappy |
Subject: | Re: Octave - stack trace in runtime mode possible? |
Date: | Wed, 28 Aug 2013 00:47:38 -0700 (PDT) |
You could try with a try catch block in combination with lasterror like in this example (I had nested the block so you can make a few tries to understand it but you may want to put it without any nesting) : % File prueba.m function ret=prueba() ret=prueba1(); endfunction function ret=prueba1() ret=prueba2(); endfunction function ret=prueba2() try error("On propose") catch ret=lasterror; end endfunction % Endfile prueba.m You can use the stack information given by lasterror to fill your needs. I don't know if there's a better way to do this but I hope this information serves your porpoise well enough -- View this message in context: http://octave.1599824.n4.nabble.com/Octave-stack-trace-in-runtime-mode-possible-tp4656830p4656873.html Sent from the Octave - General mailing list archive at Nabble.com.
[Prev in Thread] | Current Thread | [Next in Thread] |