Question

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?

Was it helpful?

Solution

Edit - dbup(), dbdown(), and dbstack() are available in Octave 3.2 and greater. http://www.gnu.org/software/octave/doc/interpreter/Debugging.html#Debugging

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top