I am trying to write my version of the debugging command of Matlab dbstep , that is, I want to do dbstep and some other things at a time. However, including dbstep in a function does not work:
% in file my_dbstep.m function my_dbstep() evalin('caller', 'dbstep');
When I call my_dbstep during a debugging session, it acts as if I typed dbstep inside a function, not the caller.
Is there any other solution?
source share