bugGNU Octave - Bugs: bug #57161, [GUI] "Step in" button...

 
 

bug #57161: [GUI] "Step in" button does not load function in editor

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  Sun 03 Nov 2019 05:34:31 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Philip Nienhuis Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 03 Nov 2019 10:32:14 PM UTC, comment #3: 

Yes Torsten that does it. Thanks!

The text you mention is:

"Always show debug breakpoints and pointers (open related file if closed)"

I figured files not in the editor would always be opened when "step in" is clicked - what else would one expect "step in" to do in a GUI editor?
So I interpreted "...open related file if closed" more as a sort of warning than as a selectable action, all the more because this text is between parentheses.

My reasoning was that "step in" w/o seeing a file is just blind guessing. Obviously "step in" is only useful if the file is open in another editor or on hard copy, i.e., when using a CLI. Having a debugged file open in the GUI editor and not opening stepped-in files in that same GUI editor seems far-fetched.
But admittedly I can imagine that there can be user scenarios for it.

OK, closing as "invalid"

Philip Nienhuis <philipnienhuis>
Group Member
Sun 03 Nov 2019 09:58:43 PM UTC, comment #2: 

There is a preference for opening files when a breakpoint is hit. Could you check if this is set for you? Maybe my fix for running selected text by F9 alters this preference in some cases ...

Torsten Lilge <ttl>
Group Member
Sun 03 Nov 2019 08:43:40 PM UTC, comment #1: 

I can confirm.
What might also be related: "dbstop" no longer opens the file in the editor for me.
It still worked with a cross build from 2019-Mar-10. It no longer works in a cross build from 2019-Jun-09 (hg id 58bdc2d98481). Unfortunately, I don't have more builds lying around from so far back. The first of the two was with local changes so the hg id wouldn't help. But maybe it still helps a little in case someone wants to bisect.

Markus Mützel <mmuetzel>
Group administrator
Sun 03 Nov 2019 05:34:31 PM UTC, original submission:  

Since a few csets (maybe < 2-3 days I think), when debugging and clicking on "Step in" when the pointer is at a function call, the relevant file to be stepped into isn't loaded in the editor anymore.
However, it is loaded in the interpreter as "dbdown" in the terminal works and actually lists the file-to-be-stepped-into:

>> pkg load econometrics
stopped in pkg at line 377 [C:\Programs\Octave\Octave-6.0.0_20191103def\mingw64\share\octave\6.0.0\m\pkg\pkg.m]
377:   switch (action)
         ## Few "step" clicks
debug>   ## Hey, no load_packages.m loaded in editor
debug> dbdown
stopped in load_packages at line 1 [C:\Programs\Octave\Octave-6.0.0_20191103def\mingw64\share\octave\6.0.0\m\pkg\private\load_packages.m]
debug>


(where I set a breakpoint at L.377, clicked the "step" button until pointer was at L.495 and then clicked "step in".

Smells like another manifestation of mismatching 8.3 vs. LFN path names.

Philip Nienhuis <philipnienhuis>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by philipnienhuis (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-03 philipnienhuis StatusConfirmed Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2019-11-03 mmuetzel StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code