Mercurial > hg > octave-nkf
changeset 13326:23cc9c13b622
show_octave_dbstack: new convenience function for debugging
* debug.cc (show_octave_dbstack): New function.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 12 Oct 2011 10:38:21 -0400 |
parents | 09b157ab2672 |
children | f81fcceb394c |
files | src/debug.cc |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/debug.cc +++ b/src/debug.cc @@ -929,6 +929,17 @@ return retval; } +// A function that can be easily called from a debugger print the Octave +// stack. This can be useful for finding what line of code the +// interpreter is currently executing when the debugger is stopped in +// some C++ function, for example. + +static void +show_octave_dbstack (void) +{ + Fdbstack (octave_value_list (), 0); +} + static void do_dbupdown (const octave_value_list& args, const std::string& who) {