bugGNU Octave - Bugs: bug #46928, [debug mode] [GUI] fails to reset...

 
 

bug #46928: [debug mode] [GUI] fails to reset breakpoint after error occurs

Submitter:  None
Submitted:  Mon 18 Jan 2016 09:53:36 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  nicmus Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 15 Aug 2018 11:59:20 PM UTC, comment #4: 

This apparently has been fixed since 2016.  I tested using the development branch on 8/15/18.  Closing report.

Rik <rik5>
Group administrator
Sat 02 Jul 2016 01:53:04 AM UTC, comment #3: 

The attached patch causes several problems.  Retagging as "In progress" from "Patch submitted".

Lachlan Andrew <lachlan>
Wed 24 Feb 2016 06:29:13 AM UTC, comment #2: 

Here is a draft patch change to allow "clear all" not to remove breakpoints.

When the GUI is active, the focus seems to alternate between the edit window and the command window for a short period after clearing a function.  I'm not sure the best way to fix that.  Perhaps there should be a general mechanism for opening an edit window without giving it focus, and that should be used by the debug related functions.

(file #36448)

Lachlan Andrew <lachlan>
Tue 19 Jan 2016 12:04:06 AM UTC, comment #1: 

The behaviour has changed since 4.0.0, especially with changeset 0a09c3cae800, but this script is still problematic.

Now, the "clear all" clears the breakpoints but does not update the GUI's markers for them, and they cannot be removed by clicking on the marker.  (For some reason, it sill stops at a breakpoint after the clear all, even though dbstatus shows that breakpoint not being present.)

Once bug #46795 has been fixed to allow  dbstop(s)  for a structure  s,  I plan to write a patch to restore all breakpoints after clear all or clear -f.  Does that sound a reasonable approach?  The alternative is to cause the symbols to be removed after clear all or clear -f

Lachlan Andrew <lachlan>
Mon 18 Jan 2016 09:53:36 AM UTC, original submission:  

Try this code:

clear all;
a = 1;
b = 2;
c = b;

disp(c)


Set a break point wherever and run the script in debug mode.
Everything works fine.

Now comment the line "b = 2;" and run again the code with some breakpoint enabled.

The script fails with an error and the debug mode is halted.
Now it is no longer possible to unset/reset the previous breakpoint. It is necessary to close and open again the script.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #36448:  bug_46928_clear_keeps_breakpoints.cset added by lachlan (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by lachlan (Posted a comment)
  •  

    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 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-15 rik5 StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2016-07-02 lachlan StatusPatch Submitted In Progress
    2016-06-28 lachlan CategoryInterpreter GUI
        Item GroupSegfault, Bus Error, etc. Incorrect Result
    2016-02-24 lachlan StatusPostponed Patch Submitted
    2016-02-24 lachlan Attached File- Added bug_46928_clear_keeps_breakpoints.cset, #36448
    2016-02-21 mtmiller CategoryNone Interpreter
        StatusNone Postponed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code