I am trying to restore breakpoints that were saved to a structure using DBSTATUS like so:
s = dbstatus;
However, when a breakpoint was set in an ordinary MATLAB file that was created inside a package directory (i.e. +mypack), the breakpoint is not restored and I do not receive an error message when I execute the following line:
dbstop(s);
The same issue occurs with MATLAB files in the package directory that contains a class definition. However, in addition to breakpoints not being restored, I also get the following error message: ERROR: ??? Error using ==> dbstop Cannot find function "myclass".
where "./+mypack/myclass.m" contains the class definition.
Another similar situation occurs when class methods are stored in @-directories. When trying to restore a breakpoint in a file ./@myClass/myMethod.m, the breakpoint is not restored and I get the following error message: ERROR: ??? Error using ==> dbstop Cannot find function "myClass.myMethod".
Best Answer