How can I create a matlab debugger breakpoint on the current line of a .m matlab file, cause matlab to enter the debugger at that point? I.e., pause the current code execution and drop into the debugger?
This would help me because I edit matlab files in an external editor. Wen I save a file, matlab clears any breakpoints I have set in that file. I have tried:
dbstop at [current_file.m]
which does not work because it sets breakpoint at the first line in the file.
As an example, in python, this could be done by:
import IPython
IPython.embed()