[Top][All Lists]

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

[Octave-bug-tracker] [bug #53702] Debug points can't be set on some line

From: Marshall
Subject: [Octave-bug-tracker] [bug #53702] Debug points can't be set on some lines
Date: Fri, 20 Apr 2018 10:40:04 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0

Follow-up Comment #2, bug #53702 (project octave):

For me, closing and reopening the file wasn't enough to correct the behavior,
but closing and re-opening octave did fix it.

x = [1,2,3,40];%comments, Line 1

for a=1:2
    for b = 1:2
        c = a + b;
        for d = 1:4
            % comments
            code = c^d;
            for e = 1:4
                for f = 1:2
                    g = sin{f};%Line 12
                    h = {a,b,c,d,f};
                    i = find(randi(2,5,1)-1,1,'first');
                    if i>3
                        j = h{1};
                    disp(code);%Line 20

%line 29

In the example code above I can initially place break points on any of the
expected lines: Not the blank ones, comment lines or end statements. After
placing all break points, copy lines 12 and 13 and paste just before line 20
(to be a new line 20 and 21). Save changes to the file. Breakpoints disappear
from the new line 22 and show up on line 28 (a blank line). A new breakpoint
can be placed on the new line 20, but not on 21 or 22. Close and re-open the
file and where breakpoints can be placed doesn't change.

Now close and reopen octave. Place all break points. delete the new lines 20
and 21 just placed. Save. The breakpoint on 28 (disp(h)) disappears and can't
be placed. There is a breakpoint on 21 (where it shouldn't be), and a new one
can be placed on 22 (an endfor where it shouldn't). Close and reopen the file.
Breakpoints can be placed the same as before: every they should except line
28, and can be placed where they shouldn't on 21 and 22.

x = [1,2,3,40];%comments, Line 1

for a=1:2
    b = 1;
    for d = 1:4
        % comments
        code = b^d;
    code2 = b^d;

%line 14

Place all breakpoints (including the blank line 15). Duplicate line 8. Save.
Can't have breakpoint on 9 or 11, but yes on 10 (an endfor) and 13 (a blank
line). Save, restart, add all breakpoints and delete the duplicate 8, save: no
breakpoint allowed on 10 or 13 or 15 (a blank line), but yes on 11, (an
endfor) and 14 (comment).


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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