bugGNU Octave - Bugs: bug #55456, "dbstop if all error"...

 
 

bug #55456: "dbstop if all error" support

Submitter:  Andrew Janke <apjanke>
Submitted:  Sat 12 Jan 2019 06:00:24 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  3 - Low Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 18 Mar 2019 08:33:41 PM UTC, comment #4: 

Yeah, this is more of an interpreter request, not GUI.

Andrew Janke <apjanke>
Mon 18 Mar 2019 08:30:26 PM UTC, comment #3: 

Is this really a feature request for the GUI and not primarily for the interpreter?

Torsten Lilge <ttl>
Group Member
Sat 12 Jan 2019 09:44:53 AM UTC, comment #2: 

I'm afraid not. After doing 'debug_on_error(true)', when an error is raised inside a try/catch block like this:


try
   ... some code ...
   ... error() happens in a function call in here ...
   ... some more code ...
catch err
   error('Something bad happened: %s', err.message);
end


the breakpoint is hit at the error() inside the catch block, not the original error. This seems like the same behavior as plain "dbstop if error", not "dbstop if all error".

Andrew Janke <apjanke>
Sat 12 Jan 2019 08:45:25 AM UTC, comment #1: 

There is 'debug_on_error (<flag>)' where flag = true or false; does that help?

Philip Nienhuis <philipnienhuis>
Group Member
Sat 12 Jan 2019 06:00:24 AM UTC, original submission:  

Matlab has a convenient "dbstop if all error" command that allows you to set a breakpoint that triggers whenever an error is raised, even if that error is inside a try/catch block. This lets you get right to the original cause of an error when it happens deep inside a call stack with multiple try/catch blocks.

It would be nice if Octave could add support for this.

I see a similar (unimplemented) "dbstop if caught error" in the "dbstop" documentation, but I think this would be a bit different.

Andrew Janke <apjanke>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by apjanke (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-29 rik5 Carbon-CopyRemoved 72865 -
    2019-03-29 rik5 CategoryGUI Interpreter
        Priority5 - Normal 3 - Low
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code