dbstop in
, disp fprintf, dbstop. dbstack, , . , MATLAB. :
>> dbstop in disp
Warning: MATLAB debugger can only stop in MATLAB code files, and "libmwbuiltins>disp" is not a MATLAB code file.
Instead, the debugger will stop at the point right before "libmwbuiltins>disp" is called.
>> dbstop in fprintf
Warning: MATLAB debugger can only stop in MATLAB code files, and "libmwbuiltins>fprintf" is not a MATLAB code file.
Instead, the debugger will stop at the point right before "libmwbuiltins>fprintf" is called.
!
testdbstop fprintTest:
function testdbstop
x=1;
disp(x)
fprintTest(x)
function fprintTest(x)
fprintf('%d\n',x);
end
end
:
>> testdbstop
3 disp(x)
K>> dbstack
> In testdbstop at 3
K>> dbcont
1
6 fprintf('%d\n',x);
K>> dbstack
> In testdbstop>fprintTest at 6
In testdbstop at 4
K>> dbcont
1
: disp 3 testdbstop.m, fprintf 6 testdbstop.m testdbstop>fprintTest, 4 testdbstop.
. , dbclear (.. dbclear in disp dbclear in fprintf).