bugGNU Octave - Bugs: bug #41845, debug_on_error(id) and...

 
 

bug #41845: debug_on_error(id) and debug_on_warning(id)

Submitted by:  Felipe G. Nievinski <fgnievinski>
Submitted on:  Wed 12 Mar 2014 05:04:16 AM UTC  
 
Category:  Octave Function Severity:  1 - Wish
Priority:  2 Item Group:  Feature Request
Status:  None Assigned to:  None
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.

 

Fri 01 Jul 2016 10:35:12 AM UTC, comment #4:

The previous patch missed the "username" metadata.

(file #37649)

Lachlan Andrew <lachlan>
Wed 22 Jun 2016 11:01:25 AM UTC, comment #3:

The attached patch makes the functionality of "debug_on_error/warning" match that of "dbstop if". Both an be local, and both can specify an ID.

The patch seems to work, but has a couple of stylistic issues.

First, it copies the template try_local_protect from variables.cc to debug.cc. I'm not sure if it should be put in a (new or existing) header.

Second, I'm not sure how functionality should be split between debug.cc and error.cc.

Given the low priority and the fact that the patch needs work, I assume this will sit here for a while...

(file #37545)

Lachlan Andrew <lachlan>
Mon 15 Feb 2016 09:50:12 PM UTC, comment #2:

I agree that it might be nice to have Octave syntax for setting debugger events. For the moment, however the Matlab syntax works perfectly well. I'm lowering the priority.

Rik <rik5>
Project Administrator
Sun 07 Feb 2016 01:43:00 AM UTC, comment #1:

Felipe, this functionality is provided by changeset
http://hg.savannah.gnu.org/hgweb/octave/rev/94fc5f13d51b

The syntax is Matlab's syntax

The same applies for errors, "caught errors" (those within a try-catch block).

It would be great if you can test the functionality and either report issues or recommend that this bug report be closed.

Thanks!

Lachlan Andrew <lachlan>
Wed 12 Mar 2014 05:04:16 AM UTC, original submission:

these would stop execution only when an error or warning of a specific ID is raised, e.g. debug_on_warning ("Octave:resize-on-range-error")

Felipe G. Nievinski <fgnievinski>

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

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 lachlan (Posted a comment)
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by fgnievinski (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.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-01 lachlan Attached File- => Added bug_41845_debug_on_error_ID.cset, #37649
    2016-06-22 lachlan Attached File- => Added bug_41845_debug_on_error_ID.cset, #37545
    2016-02-15 rik5 Priority5 - Normal => 2
    2014-03-27 mtmiller CategoryNone => Octave Function
        Severity3 - Normal => 1 - Wish

    Back to the top


    Powered by Savane 3.3