bugGNU Octave - Bugs: bug #66320, breakpoint not possible for...

 
 

bug #66320: breakpoint not possible for subfunctions with similar function names

Submitter:  Reimund <rayman>
Submitted:  Fri 11 Oct 2024 09:27:47 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 9.2.0 Operating System:  * GNU/Linux
Fixed Release:  10.1.0 (current stable) Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 18 Oct 2024 10:18:23 PM UTC, comment #4: 

Okay, when trying to set breakpoints from the GUI I can confirm that 9.2 does not work for certain function names.  Happily, this has been fixed in the development version (10) that will come out in a few months.  Since it has been fixed already I'm going to keep the bug report closed.

Rik <rik5>
Group administrator
Fri 18 Oct 2024 09:44:31 PM UTC, comment #3: 

I didn't know using dbstop abc>defA.
It's working as you said, so I'm glad for this possibility.

As normally using the Octave GUI, I was referring to setting the breakpoints using the GUI which is not working.

When using dbstop abc>defA I can remove the breakpoint using the GUI but it is not possible to activate it from the GUI.

So it seems the bug is in the Octave GUI.

Thank you for helping :)

Reimund <rayman>
Wed 16 Oct 2024 08:59:15 PM UTC, comment #2: 

This works for me.

The syntax for setting breakpoints for subfunctions of a main function file is to use the '>' character.  So, with your file abc.m


dbstop abc
dbstop abc>def
dbstop abc>defA
dbstop abc>defB


This sets breakpoints on all four functions in the file abc.m.

Also, for clarity and readability of the code it would be a good idea to stop the definition of each function with the keyword "endfunction".  I found the code hard to understand and whether you wanted functions after "abc" to be subfunctions or nested functions which are slightly different.

Rik <rik5>
Group administrator
Fri 11 Oct 2024 09:35:41 AM UTC, comment #1: 

Maybe has to do sth. with bug #65610

Reimund <rayman>
Fri 11 Oct 2024 09:27:47 AM UTC, original submission:  

File abc.m with functions "abc", "def", "defA", "defB" can add breakpoints for "abc" and "def",
but fail to add breakpoint for the latter functions "defA" and "defB"

I added a test file for that.

This seems a general bug.

Especially when using test cases having functions starting with test_..., breakpoints are not possible

Hope it can be fixed soon ;)

Thanks
Reimund

Reimund <rayman>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #56496:  abc.m added by rayman (96B - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by rayman (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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-10-18 rik5 StatusWorks For Me Fixed
        Fixed ReleaseNone 10.1.0 (current stable)
    2024-10-17 rik5 Open/ClosedOpen Closed
    2024-10-16 rik5 Summarybreakpoint not possible for sub functions with similar function names breakpoint not possible for subfunctions with similar function names
    2024-10-16 rik5 CategoryNone Interpreter
        Item GroupNone Other
        StatusNone Works For Me
    2024-10-11 rayman Attached File- Added abc.m, #56496

    Back to the top

    Powered by Savane 3.14-cbb1.
    Corresponding source code