MATLAB: Are all the breakpoints deleted when I execute the JAVAADDPATH function

MATLAB

My MATLAB script calls various functions, which are defined in separate MATLAB files. I have set breakpoints at various locations inside the functions.
If I execute
javaaddpath
at the beginning of my script, then all my breakpoints inside the functions are deleted and the program execution does not halt at those points.

Best Answer

This enhancement has been incorporated in Release 2010b (R2010b). For previous product releases, read below for any possible workarounds:
It is not possible to maintain breakpoints when executing the JAVAADDPATH command.
As a workaround, execute the following code to save and restore breakpoints:
x=dbstatus;
javaaddpath path_string
dbstop(x);