This was actually a Comment in another post of mine, but I’ll paste it here since the migration to Disqus and it’s worth a post anyway:
iss replied on Mon, 2011-07-04 10:31:
I just found a nice site about Octave debugging. It told me about the following two functions, which are very nice for debugging, which is a pretty pitty in Octave in contrast to Matlab :/
If you want to add a breakpoint to your function at a speciﬁc line, use the following statement
Then you can use the dbxxx commands to debug your code:
dbstep dbcont dbnext ...
Happy debugging! iss