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

 採用された回答

Titus Edelhofer
Titus Edelhofer 2012 年 1 月 13 日

1 投票

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 件)

カテゴリ

ヘルプ センター および File Exchange で Construct and Work with Object Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by