Programming Previous page   Next Page

Debugging Class Methods

You can use the MATLAB debugging commands with object methods in the same way that you use them with other M-files. The only difference is that you need to include the class directory name before the method name in the command call, as shown in this example using dbstop.

While debugging a class method, you have access to all methods defined for the class, including inherited methods, private methods, and private functions.

Changing Class Definition

If you change the class definition, such as the number or names of fields in a class, you must issue a

command to propagate the changes to your MATLAB session. This command also clears all objects from the workspace. See the clear command help entry for more information.


Previous page  Private Methods Setting Up Class Directories Next page

© 1994-2005 The MathWorks, Inc.