bugGNU Octave - Bugs: bug #56219, debugger frame initializes too low...

 
 

bug #56219: debugger frame initializes too low when using 'dbstop if error'

Submitter:  eflister <eflister>
Submitted:  Thu 25 Apr 2019 09:34:39 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  eflister Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 26 Apr 2019 06:21:12 PM UTC, comment #1: 

For reference, here is a test case which is attached as tst_debug_frame.m


function tst_debug_frame ()
  subfunction1 ();
  x = 1;
endfunction

function subfunction1 ()
  subfunction2 ();
  y = 2;
endfunction

function subfunction2 ()
  error ("Stop, and enter debugger");
  z = 3;
endfunction


Steps to Reproduce


debug_on_error (1)
tst_debug_frame
dbup


This bug is apparently of long standing as versions 5.1, 4.4, and 4.2 all have the same problem.  Happily, this has already been fixed on the development branch which will become 6.1.


(file #46834)

Rik <rik5>
Group administrator
Thu 25 Apr 2019 09:34:39 PM UTC, original submission:  

when entering the debugger after an error when using 'dbstop if error', the first time i issue 'dbup,' the frame does not change to the caller -- it only does so after the 2nd time i issue 'dbup'.

i don't have the same problem when using 'keyboard' to enter the debugger.

eflister <eflister>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #46834:  tst_debug_frame.m added by rik5 (219B - 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 rik5 (Updated the item)
  • -email is unavailable- added by eflister (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-04-26 rik5 Attached File- Added tst_debug_frame.m, #46834
        StatusNone Fixed
        Open/ClosedOpen Closed
        Release5.1.0 dev
        Operating SystemMac OS Any

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code