Debuger doest not work with Object Oriented Programming
1 view (last 30 days)
Show older comments
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
Accepted Answer
Titus Edelhofer
on 13 Jan 2012
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
More Answers (0)
See Also
Categories
Find more on Software Development Tools in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!