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
dbnext
To step into type
dbstep
To continue running, type
dbcont
to see the variable value, just type the name of the variable.
No comments:
Post a Comment