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 08 Feb 2014 07:57:58 PM UTC  
 
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 09 Feb 2014 04:25:35 PM UTC, 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 08 Feb 2014 11:07:50 PM UTC, 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 08 Feb 2014 09:14:24 PM UTC, 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 08 Feb 2014 07:57:58 PM UTC, 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):
   
   
Comment:
   

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 08 Feb 2014 07:57:58 PM UTCfgnievinskiAttached File-=>Added case.zip, #30490

    Back to the top


    Powered by Savane 3.1-cleanup