bugGNU Octave - Bugs: bug #56150, Regressions with debugger


bug #56150: Regressions with debugger

Submitted by:  Rik <rik5>
Submitted on:  Wed 17 Apr 2019 03:54:36 PM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  None Assigned to:  John W. Eaton <jwe>
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

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


Wed 17 Apr 2019 04:38:54 PM UTC, comment #2:

The recursion level is not being reset when exiting the debugger.

I used

Each set of "db_prompt; dbquit" causes the printed recursion level to increase.

Rik <rik5>
Project Administrator
Wed 17 Apr 2019 04:10:55 PM UTC, comment #1:

The debugger may now be entered recursively so the "[N]" part is there to give you some clue about the recursion level. We could make it optional. It is supposed to be reset as you pop out of the recursive call. Is that not happening? Does it work properly if you only enter one command per line at the debug prompt?

John W. Eaton <jwe>
Project AdministratorIn charge of this item.
Wed 17 Apr 2019 03:54:36 PM UTC, original submission:

Use the attached script (db_prompt.m) and then execute

Issue #1: The resulting debugger prompt is "[1]debug>". I checked PS1() and the interpreter has temporarily set PS1 to this odd value. If you use "dbquit; db_prompt" then you can get the initial count to increment to "[2]", "[3]", etc.

Issue #2: I can move up/down the stack with dbup/dbdown but the code listing (dblist) is always stuck at the lowest level of the stack. It seems that dbwhere is correctly updated when the stack level changes.

Rik <rik5>
Project Administrator


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

Attach Files:

Attached Files
file #46786:  db_script.m added by rik5 (291B - text/x-matlab)


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only project members can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-04-17 rik5 Attached File- => Added db_script.m, #46786

    Back to the top

    Powered by Savane 3.4