octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51271] restore debug points on startup or run


From: Marshall
Subject: [Octave-bug-tracker] [bug #51271] restore debug points on startup or run .octaverc in restored pwd
Date: Mon, 19 Jun 2017 17:40:42 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0

URL:
  <http://savannah.gnu.org/bugs/?51271>

                 Summary: restore debug points on startup or run .octaverc in
restored pwd
                 Project: GNU Octave
            Submitted by: marsian
            Submitted on: Mon 19 Jun 2017 09:40:41 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: Marsian
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

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: 

%Save breakpoints:
dbstats = dbstatus;
save dbstats.bp dbstats

%Load breakpoints:
if exist("dbstats.bp","file")
        dbload = load("dbstats.bp","dbstats");
        dbstop(dbload.dbstats);
endif                   

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.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51271>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]