help-octave
[Top][All Lists]
Advanced

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

Re: Debug and classdef


From: Mike Miller
Subject: Re: Debug and classdef
Date: Fri, 11 Nov 2016 08:59:02 -0800
User-agent: NeoMutt/20161014 (1.7.1)

On Fri, Nov 11, 2016 at 08:56:20 +0000, Vallet José (MML) wrote:
> - When using an external editor (Kate in my case), whenever I make a
> modification to a class it is not recognized by octave until I do a
> clean all. Specifically, "clean test_class" does not help. This
> results in a rather uncomfortable development cycle. How are you guys
> dealing with this?

Use "clear classes" or "clear -c" to tell Octave to reload class
definitions.

> - Adding a breakpoint from the command line as described in
> http://wiki.octave.org/Classdef does not seem to work.
> --->
> >> dbstop @test_class\show
> error: add_breakpoint: unable to find the requested function
> <---
> Any hints?
> 
> - Is there any tutorial or document describing how to debug a classdef
> class?

There are many things that do not yet work with classdef, and the
debugger looks to me like one of those. I also cannot set breakpoints in
a classdef constructor or method, whether it's internal or external to
the class definition. The keyboard() function does work, though, so you
can edit your classdef code and drop a "keyboard" wherever you want to
inspect.

-- 
mike



reply via email to

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