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

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

[Octave-bug-tracker] [bug #47917] dbstop skips nested functions


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #47917] dbstop skips nested functions
Date: Wed, 18 May 2016 03:26:57 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #47917 (project octave):

                  Status:             In Progress => Patch Submitted        

    _______________________________________________________

Follow-up Comment #6:

The attached patch has the recursive code to handle functions nested within
subfunctions.  It should be applied *on top* of the .v2 patch in file #37185.

This time I've explicitly tested it on scripts, functions within scripts and
functions within functions.

There is one idiosyncracy.  For


function a

  function b
    x = 1;
  end
  y = 1;
end

function c
  z = 1;
end


trying to set a breakpoint in line 2 (the blank line before b) will set the
breakpoint on the next line in function a (since line 2 is in a), whereas
trying to set a breakpoint in the blank line before c will set the breakpoint
to the first executable line of c.

I think this is reasonable, or at least not worth the effort of changing.

(file #37193)
    _______________________________________________________

Additional Item Attachment:

File name: bug_47917_dbstop_nested_recursive.cset Size:5 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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