bugGNU Octave - Bugs: bug #51271, restore debug points on startup or...

 
 

bug #51271: restore debug points on startup or run .octaverc in restored pwd

Submitted by:  Marshall <marsian>
Submitted on:  Mon 19 Jun 2017 09:40:41 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: NoneAssigned to: None
Originator Name: MarsianOpen/Closed: Open
Release: 4.2.1Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 19 Jun 2017 09:55:39 PM UTC, comment #1:

I found an ugly workaround. If I put the following in ~/.octaverc or ~/startup.m, then breakpoints are restored properly after hitting continue. Slightly less tedious than having to remember to run and then manually running the following lines, but not perfect.

Marshall <marsian>
Mon 19 Jun 2017 09:40:41 PM UTC, original submission:

I want to restore the debug break points from the previous octave session. Please either make this an option along with the "Restore working directory of previous session" option in the General Preferences Settings, or run .octaverc or startup.m files that exist in the restored working directory due to selecting this option.

More details: I have the "Restore working directory of previous session" option and "Restore editor tabs from previous session on startup" options both selected. I want the breakpoints to also be restored as set when closing octave from the previous session. I can almost do this automatically with finish.m and startup.m (or .octaverc) files with the following commands:
If I put the save code in the pwd, then saving the file works and manually running the load code works. But I run in to the problem that I can't get the load code to run automatically at startup: as stated by the "Restore working directory" option, .octaverc startup files are run before the last working directory is restored. I can set the files to be saved in ~/dbstats.bp, so they can be found by .octaverc in the home directory, but then the breakpoints can not be set because the files the breakpoints references aren't on the path yet, because the working directory hasn't been changed appropriately yet.

Marshall <marsian>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by marsian (Submitted the item)
  • -unavailable- added by marsian
  •  

    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
    Mon 19 Jun 2017 09:40:41 PM UTCmarsianCarbon-Copy-=>Added marsian

    Back to the top


    Powered by Savane 3.1-cleanup1