Debuger doest not work with Object Oriented Programming

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

 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

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!