Can I debug Matlab class objects in Simulink Matlab Function block?

조회 수: 1 (최근 30일)
Aaron
Aaron 2012년 12월 21일
댓글: Tom Amlicke 2021년 8월 5일
It appears that Matlab objects embedded as persistent variables in a Matlab Function block cannot be viewed in a debugging session.
For instance, with an object a with member x, when stopped in a debug session, if I type the name of the object or reference a member, I get:
debug>> a
a =
Variables of class type cannot be displayed.
debug>> a.x
Attempt to reference field of non-structure array.|
I am using R2012b. Any ways to enable this debugging capability? It's extremely important for effectively using these in models.
  댓글 수: 6
Kaustubha Govind
Kaustubha Govind 2012년 12월 26일
Aaron: If debug capability for MATLAB class objects with the MATLAB Function block is important to you, I would encourage you to submit an enhancement request via MathWorks Technical Support. Thanks!
Tom Amlicke
Tom Amlicke 2021년 8월 5일
Is this feature on a road map? I'm debugging a large model on 2020a and can not see into any of my MATLAB objects while debugging my Simulink models. Thanks!

댓글을 달려면 로그인하십시오.

답변 (0개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by