How to get a list of listeners
I am currently working on a fairly large Matlab OOP codebase, with listeners defined all over the place. Unfortunately the guy who created this codebase left the company and there is not really any documentation available.
As there are so many listeners all over the place, simply querying or changing some object property frequently has unexpected side effects, making debugging very painful. Is there a simple way to get a list of all the listeners for a given property? E.g. something to the extent of getlisteners(obj.myProperty)? This would really help in figuring out what on earth the code is actually doing…
I would have expected this to be a quite basic question but somehow can not find a simple answer anywhere.
Thanks!
GijsI am currently working on a fairly large Matlab OOP codebase, with listeners defined all over the place. Unfortunately the guy who created this codebase left the company and there is not really any documentation available.
As there are so many listeners all over the place, simply querying or changing some object property frequently has unexpected side effects, making debugging very painful. Is there a simple way to get a list of all the listeners for a given property? E.g. something to the extent of getlisteners(obj.myProperty)? This would really help in figuring out what on earth the code is actually doing…
I would have expected this to be a quite basic question but somehow can not find a simple answer anywhere.
Thanks!
Gijs I am currently working on a fairly large Matlab OOP codebase, with listeners defined all over the place. Unfortunately the guy who created this codebase left the company and there is not really any documentation available.
As there are so many listeners all over the place, simply querying or changing some object property frequently has unexpected side effects, making debugging very painful. Is there a simple way to get a list of all the listeners for a given property? E.g. something to the extent of getlisteners(obj.myProperty)? This would really help in figuring out what on earth the code is actually doing…
I would have expected this to be a quite basic question but somehow can not find a simple answer anywhere.
Thanks!
Gijs events, listeners MATLAB Answers — New Questions