help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave - stack trace in runtime mode possible?


From: c.
Subject: Re: Octave - stack trace in runtime mode possible?
Date: Tue, 27 Aug 2013 22:35:41 +0200

On 27 Aug 2013, at 18:30, Werner Koenig <address@hidden> wrote:

> Hello Kai, hello list
> 
> thank you for your quick response. Yes, I want to make a stack trace like in 
> debug mode of octave.
> The purpose is, I want to evaluate in a subroutine, which function calls this 
> routine and what
> is the linenumber of this call.
> 
> So long
> 
> Werner

you can either add the command 'keyboard' at the beginning of your function or 
issue the command 'dbstop <function name>'
Octave will open a debug prompt whenever your function is called.

At the debug prompt type 'dbstack' to see the full call stack including line 
numbers.

HTH,
c.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]