[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45404] Breakpoints cannot be set in classdef
From: |
Richard |
Subject: |
[Octave-bug-tracker] [bug #45404] Breakpoints cannot be set in classdef methods or +package function files |
Date: |
Thu, 14 Feb 2019 05:29:22 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0 |
Follow-up Comment #11, bug #45404 (project octave):
The ML docs here:
https://uk.mathworks.com/help/matlab/matlab_oop/using-the-editor-and-debugger-with-classes.html
state that dbstop accepts and file specification accepted by the edit command,
but this doesn't seem to work for class methods, e.g. for a class waveClass on
my path:
>> edit waveClass.plotEta % works, opens at the plotEta method
>> dbstop waveClass.plotEta
Error using dbstop
Cannot find function "waveClass.plotEta".
However, the following stackoverflow question
https://stackoverflow.com/questions/19523965/how-to-place-a-breakpoint-at-the-start-of-a-method-programmatically
reveals that both of the following works:
dbstop in waveClass at waveClass.plotEta
dbstop waveClass at waveClass.plotEta
I suppose technically this agrees with the matlab doc.
For another class, waveSettings, on my path which is in a package directory
(+wsim), the following is the syntax:
>> dbstop in wsim.waveSettings at waveSettings.plotEta % works
>> dbstop in wsim.waveSettings at wsim.waveSettings.plotEta
Error using dbstop
Cannot find function "wsim.waveSettings.plotEta" within "waveSettings".
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?45404>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/