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 FunctionSeverity: 1 - Wish
Priority: 2Item Group: Feature Request
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating 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>
Project Member
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>
Project Member
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

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.


Lachlan Andrew <lachlan>
Project Member
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 File(s):

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 01 Jul 2016 10:35:12 AM UTClachlanAttached File-=>Added bug_41845_debug_on_error_ID.cset, #37649
    Wed 22 Jun 2016 11:01:25 AM UTClachlanAttached File-=>Added bug_41845_debug_on_error_ID.cset, #37545
    Mon 15 Feb 2016 09:50:12 PM UTCrik5Priority5 - Normal=>2
    Thu 27 Mar 2014 02:43:06 AM UTCmtmillerCategoryNone=>Octave Function
      Severity3 - Normal=>1 - Wish

    Back to the top

    Powered by Savane 3.1-cleanup1