From: Joao Henriques on
This is probably not what you want to hear, but you can replace the listeners with cell arrays of function pointers. It's very simple to implement and worked well for me. Of course, if you're already knee-deep in ML events in your particular system, it may be an unacceptable change; but I wouldn't want to debug a complicated system with such debugger restrictions either. Just start with an empty cell array for each event; instead of calling addlistener, append your callback function pointer to the array; and instead of notify, just call all the function pointers in sequence. To listen to changes in properties it's not very convenient, but neither is the alternative.