When I'm stepping through my code, it would be nice to be able to "peek" into the contents of private properties in my objects from scopes where this would not normally be possible during regular program execution. Is there a way to do this without having to set all of my properties to public temporarily and then setting them back to private when I'm done debugging?
For example, if I create the class definition:
classdef test properties(SetAccess= private, GetAccess=private) a = 'a'; b='b'; end properties c='c'; d='d'; endend
and instantiate this object in another function, 'call_test.m':
function call_testt = test;end
I would like to be able to see the private properties of this object when running 'call_test.m' in debug mode.
Best Answer