|
From: | O. Scott Sands |
Subject: | Re: "stop" function |
Date: | Wed, 03 Mar 1999 22:04:10 -0500 |
Hi,Try inserting a 'keyboard' in your code.IDL has a function I appreciated a lot: "stop" would break
the execution of a function, and halt there. The user
is given back the prompt. The visible variables are
the local variables of that specific function. I used
this a lot for debugging: let a routine run and inspect
variables on the spot, if something goes wrong, with
"print" statements from the command line. IDL also
has the "continue" command which lets you resume the
execution of a routine after having inspected/changed
variables. "retall" would bring you back to the top
level (main prompt of octave).Is there something similar in Octave ? Would it be easy
to implement ?Thanks,
Simon.
--
---------------------------------------------------------------------
Simon Hefti, Ph D address@hidden
---------------------------------------------------------------------
-- O. Scott Sands address@hidden
[Prev in Thread] | Current Thread | [Next in Thread] |