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

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

[Octave-bug-tracker] [bug #46468] Cannot set class function break point


From: anonymous
Subject: [Octave-bug-tracker] [bug #46468] Cannot set class function break point in Octave 4.0.0
Date: Wed, 18 Nov 2015 02:16:58 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?46468>

                 Summary: Cannot set class function break point in Octave
4.0.0
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 18 Nov 2015 02:16:57 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: Heng Sun
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

I cannot set a break point for a class function. I am using Octave 4.0.0 on
Window 7. Octave documentation
https://www.gnu.org/software/octave/doc/interpreter/Breakpoints.html
mentions:

Breakpoints in class methods are also supported (e.g., dbstop
("@class/method")). 

In my work dir, I have a folder named "@DebugTest". It has two m files:

File DebugTest.m has contents (2 lines):

classdef DebugTest
endclassdef


File d.m has contents (3 lines):

function d(dt)
  disp('Break here please.');
endfunction


I run the following three lines in command window (Octave GUI):

dt = DebugTest();
dt.d();
dbstop("@DebugTest/d");


Here is the output screen shot:

>> dt = DebugTest();
>> dt.d();
Break here please.
>> dbstop("@DebugTest/d");
error: add_breakpoint: unable to find the requested function
>>


We see desired output. So my class function is recognized without any problem.
But the error message shows I cannot set a break point. Remark that I cannot
set break point on the GUI  by mouse click either.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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