debug_on_warning(1);
debug_on_error(1);
this is to enter debug mode in Octave whenever a warning or error occurs.
To add a breakpoint, use
dbstop('yourfunctionname',1)where 1 is the line number where you want to stop.
To go to next line, type
dbnextTo step into type
dbstepTo continue running, type
dbcontto see the variable value, just type the name of the variable.
No comments:
Post a Comment