MATLAB Answers

Javier
0

Debuger doest not work with Object Oriented Programming

Asked by Javier
on 13 Jan 2012
Hi,
I am testing Matlab object oriented programming (OOP). However, it seems that breakpoints are not working when enabling them at the classes methods. I wonder if this is a bug in Matlab debugger or if there is a specific way of debugging when using OOP.
Thanks

  0 Comments

Sign in to comment.

1 Answer

Answer by Titus Edelhofer on 13 Jan 2012
 Accepted Answer

Hi Javier,
they should work. You might be stumbled across one of the following two points: when you change the class file, the file get's cleared. In this case the breakpoint get's removed. You can see this if you put a breakpoint and then enter
clear myclass
where myclass is the name of your class.
Second,
clear classes
clears all classes (who would have guessed this ;-)), so the same as above happens. Apart from that, debugging (should) work just as for usual functions ...
Titus

  0 Comments

Sign in to comment.