|
From: | Heng Sun |
Subject: | Cannot set class function break point in Octave 4.0.0 |
Date: | Sat, 14 Nov 2015 12:08:43 -0500 |
I had hard time to set a break point for a class function. I am using Octave 4.0.0 on Window 7.
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. What do I need to do to set a break point for a class function? Thank you for help. Heng |
[Prev in Thread] | Current Thread | [Next in Thread] |