bugGNU Octave - Bugs: bug #40397, Scope is not changed with dbup /...


bug #40397: Scope is not changed with dbup / dbdown in debug mode

Submitted by:  Markus Appel <mappel>
Submitted on:  Mon Oct 28 18:09:40 2013  
Category: InterpreterSeverity: 5 - Blocker
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: John W. Eaton <jwe>
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Fri Nov 1 14:04:06 2013, comment #7:

I've re-tested the original reporter's code and this works for me now. Closing report.

Rik <rik5>
Project Administrator
Tue Oct 29 20:31:12 2013, comment #6:

I checked in the following change:


It seems to fix the problem for me, but could probably use more testing.

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Tue Oct 29 17:02:37 2013, comment #5:

Thanks. I'm looking at it.

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Tue Oct 29 16:59:36 2013, comment #4:

Doesn't matter, I have seen the problem within one file and in two seperate files, as well as with copy&paste the function definitions to command line.

Markus Appel <mappel>
Tue Oct 29 16:21:02 2013, comment #3:

OK, I see the problem when functionA and functionB are in separate files.

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Tue Oct 29 16:08:39 2013, comment #2:

Is functionA a single .m file with a subfunction called functionB, or are these two separate .m files?

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Mon Oct 28 18:15:35 2013, comment #1:

Sorry, I messed up the markup for the web version, here is the example again (why is there no preview button...):
Debugging the error:

Additional minor problem: dbup needs two bumps to move up the stack from the lowest level when stopped due to an error, but only one when stopped with "keyboard". I think this has been like this for a long time, but the scope problem is new (to me).

Markus Appel <mappel>
Mon Oct 28 18:09:40 2013, original submission:

current tip (17780:8b353af4a1ca), built on Ubuntu 12.04.
When moving up and down the stack in debug mode, the variable scope is not properly changed. 'whos' lists the right scope, but debug commands are always executed at the lowest level.

Minimal example:

Markus Appel <mappel>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by mappel (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Nov 1 14:04:06 2013rik5StatusReady For Test=>Fixed
    Tue Oct 29 20:31:12 2013jweStatusIn Progress=>Ready For Test
    Tue Oct 29 17:02:37 2013jweStatusConfirmed=>In Progress
      Assigned toNone=>jwe
    Tue Oct 29 16:21:02 2013jweSeverity3 - Normal=>5 - Blocker

    Back to the top

    Powered by Savane 3.1-cleanup1