How to show variables in the workspace of an custom UI component ( App Designer) while debugging?

I am building a big app with several custum UI components. I noticed that I can see the app workspace with all variables while debugging in the main app designer app. But when I try this while debugging of an custum UI component the property inspector starts and I cannot see all die variables in the object "comp". Is there any option to deactivate the property inspector?

 Akzeptierte Antwort

Adam Danz
Adam Danz am 23 Apr. 2025
Bearbeitet: Adam Danz am 23 Apr. 2025
I'm having trouble envisioning what you're describing. The property inspector can be closed using the following command.
inspect -close
To explore what you're descibing, I created a custom UI component using ComponentContainer and made it available in appdesigner using appdesigner.customcomponent.configureMetadata. After dragging the component into the app in Design View, I assigned a ValueChanged callback function to it and placed a break point within that callback function. After running the app, I interacted with the component to trigger the callback and was able to see component property values from within MATLAB desktop.
Update
I figured out what you are seeing. I believe you are accessing the object by double clicking on the object from the Workspace browser. This indeed opens the Property Inspector. Use openvar to open the variable in variable editor. If the object's name is "comp", openvar('comp').

1 Kommentar

Perfect! Thank you very much. openvar is the solution I was looking for. :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2024b

Gefragt:

am 23 Apr. 2025

Bearbeitet:

am 25 Apr. 2025

Community Treasure Hunt

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

Start Hunting!

Translated by