views:

24

answers:

1

I have a failure in some inner library function in Octave. I want to debug the calling function, but I don't know how to do it.

  • How can I see the stack trace?

  • How can I move between frames?

+1  A: 

Edit - turns out dbup(), dbdown(), and dbstack() are available in Octave 3.2 and greater, though I've not tried them.

old answer

I don't know of a way to show the callstack. Once I'm in debug mode, I use dbstep() and dbnext() to step into and over, respectively, the next line, and write the calls. Also, you can see the lines of code nearby with dbwhere() and dbtype(). This is definitely one area where MATLAB is ahead of Octave.

mtrw