bugGNU Octave - Bugs: bug #51389, Impossible to set breakpoints on...

 
 

bug #51389: Impossible to set breakpoints on lines with only "end" keyword

Submitter:  None
Submitted:  Wed 05 Jul 2017 11:46:37 AM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Kidron Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 05 Jul 2017 01:49:39 PM UTC, comment #2: 

At the moment, you cannot put a breakpoint in a line that only contains an "end" keyword. It looks like you can in Matlab. I changed the title accordingly.

Since there is an easy workaround (set the breakpoint in the last possible line before the "end" keyword), I lowered the severity and priority and changed to "feature request".
The behavior is still the same in dev and present on any operating system.

Markus Mützel <mmuetzel>
Group administrator
Wed 05 Jul 2017 12:41:02 PM UTC, comment #1: 

when line number was changed 4 --> 3,
dbstop in "zerocross" at 3 if k*(k-1)<0
it did stop.
 I counted lines including the Function line
------------------------------------
stopped in C:\Users\Naftali\Desktop\zerocross.m at line 3
3:      k * (k - 1)
ans =  30
ans =  19.110
ans =  10.640
ans =  4.5900
ans =  0.96000
debug>

Anonymous
Wed 05 Jul 2017 11:46:37 AM UTC, original submission:  

command:
dbstop in "zerocross" at 3 if k*(k-1) < 0 
function:
function zerocross
for k = -5:1.1:5
  k * (k - 1)
endfor
endfunction

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #41124:  zerocross.m added by None (315B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by None (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
    2017-07-05 mmuetzel Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low
        Item GroupIncorrect Result Feature Request
        StatusNone Confirmed
        Release4.2.1 dev
        Operating SystemMicrosoft Windows Any
        Summarydbstop does not on if clause Impossible to set breakpoints on lines with only "end" keyword
    2017-07-05 None Attached File- Added zerocross.m, #41124

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code