bugGNU Octave - Bugs: bug #41515, dbstop could support breakpoints...


bug #41515: dbstop could support breakpoints in private functions and private methods

Submitted by:  Felipe G. Nievinski <fgnievinski>
Submitted on:  Sat Feb 8 19:57:58 2014  
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sun Feb 9 16:25:35 2014, comment #3:

@comment #2:
Of course, but that gives other problems.
For one, that e.g., data files and core dumps could end up in the private dir. It gets real messy then.

Really, to be able to properly debug function files in "real" situations they need to be in the load path.

I sometimes add the private dir to the load path (addpath .....), that helps too. But I find that Octave doesn't reliably pick up changes to function files in that private subdir.

Philip Nienhuis <philipnienhuis>
Project Member
Sat Feb 8 23:07:50 2014, comment #2:

Another option is to change directory from within Octave to the private directory which contains the function to debug. At that point you will be able to set the breakpoint and it doesn't involve moving any files.

Rik <rik5>
Project Administrator
Sat Feb 8 21:14:24 2014, comment #1:

Yeah this would be nice.

A (the?) problem might be that files in private dirs are not in Octave's load path (not explicitly).

When I want to debug or step through function files in private subdirs I usually move them up into the private/ subdir's parent directory (which is usually in the load path).

Philip Nienhuis <philipnienhuis>
Project Member
Sat Feb 8 19:57:58 2014, original submission:

so that these would work:

dbstop private\apvtfnc
dbstop @aclass\private\apvtmethod

also tried variations with forward slash and .m extension.
zip file attached.

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
file #30490:  case.zip added by fgnievinski (748B - application/x-zip-compressed)


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 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):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Feb 8 19:57:58 2014fgnievinskiAttached File-=>Added case.zip, #30490

    Back to the top

    Powered by Savane 3.1-cleanup1