help-octave
[Top][All Lists]
Advanced

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

Re: local variables in debugger : Octave 3.2.2


From: John W. Eaton
Subject: Re: local variables in debugger : Octave 3.2.2
Date: Tue, 4 Aug 2009 12:59:51 -0400

On  4-Aug-2009, Jaroslav Hajek wrote:

| On Mon, Aug 3, 2009 at 9:45 PM, Rishi Amrit<address@hidden> wrote:
| > Hi,
| >
| >     I have a keyboard statement inside a function which I am calling from my
| > main script. When Octave stops in the debug mode, I dont see the variables
| > in the scope of that function. I only see the variables in the out main
| > script. Eg:
| >
| > main.m:
| >
| > a=1; b=2;
| > fun2;
| >
| >
| > fun2.m
| > function fun2
| > c=1; d=2;
| > keyboard
| >
| >
| >
| > Now when I run,
| >
| > octave> main
| > keyboard: stopped in fun2.m
| > octave> who
| > a    b
| >
| >
| > Why am I not seeing the local variables ? This was not the case in Octave
| > 3.0.5. Seems to be there in Octave 3.2.2. Any ideas on what changed ?
| >
| > Thanks,
| >
| > Rishi
| 
| I think the following patch is in order:
| http://hg.savannah.gnu.org/hgweb/octave/rev/fb22dd5d6242
| 
| there's no need to skip the built-in function stack frame, because
| get_debug_input already does that all right, and there's no need to
| save and restore the frame, because do_keyboard does it.
| 
| John, can you check it out? I hope this didn't spoil something else.

With your change, dbup/dbdown was not working as I would expect.

I checked in the following additional change and it seems to work
correctly now.

  http://hg.savannah.gnu.org/hgweb/octave/rev/25c2e92ee03c

I also noticed that dbwhere is not working correctly, so I'll take a
look at that next.

jwe



reply via email to

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