[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56020] dbup and dbdown not working as expecte
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #56020] dbup and dbdown not working as expected |
Date: |
Thu, 28 Mar 2019 06:19:13 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
URL:
<https://savannah.gnu.org/bugs/?56020>
Summary: dbup and dbdown not working as expected
Project: GNU Octave
Submitted by: gyom
Submitted on: Thu 28 Mar 2019 10:19:12 AM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
In debugging mode, dbup and dbdown do not seem to work as expected. In this
example:
%%%%%%%% testdb.m %%%%%%%%
function testdb
val = 0;
a;
end
function a
val = 1;
b;
end
function b
val = 2;
keyboard;
end
Octave's behavior is:
octave> testdb
stopped in /opt/octave/testdb.m at line 13
13: keyboard;
debug> dbstack
stopped in:
--> testdb>b at line 13 [/opt/octave/testdb.m]
testdb>a at line 8 [/opt/octave/testdb.m]
testdb at line 3 [/opt/octave/testdb.m]
debug> dbup
stopped in testdb>b at line 13 [/opt/octave/testdb.m]
debug> dbstack
stopped in:
--> testdb>b at line 13 [/opt/octave/testdb.m]
testdb>a at line 8 [/opt/octave/testdb.m]
testdb at line 3 [/opt/octave/testdb.m]
debug> dbup
stopped in testdb>b at line 13 [/opt/octave/testdb.m]
debug> dbup
stopped in testdb>b at line 13 [/opt/octave/testdb.m]
debug> dbdown
error: dbdown: invalid stack frame
error: called from
testdb>b at line 13 column 3
testdb>a at line 8 column 3
testdb at line 3 column 3
while in Matlab:
>> testdb
K>> dbstack
> In testdb>b (line 13)
In testdb>a (line 8)
In testdb (line 3)
K>> dbup
In workspace belonging to testdb>a (line 8)
K>> dbstack
In testdb>b (line 13)
> In testdb>a (line 8)
In testdb (line 3)
K>> dbup
In workspace belonging to testdb (line 3)
K>> dbstack
In testdb>b (line 13)
In testdb>a (line 8)
> In testdb (line 3)
K>> dbup
In base workspace.
K>> dbup
In base workspace.
K>> dbstack
In testdb>b (line 13)
In testdb>a (line 8)
In testdb (line 3)
K>> dbdown
In workspace belonging to testdb (line 3)
K>> dbdown
In workspace belonging to testdb>a (line 8)
K>> dbdown
In workspace belonging to testdb>b (line 13)
K>> dbdown
In workspace belonging to testdb>b (line 13)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56020>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56020] dbup and dbdown not working as expected,
Guillaume <=