Locate the specified code debugging cycle []

1) Realization Condition: debugging tools
2) Method: set a breakpoint (subtle)
3) implementation example: In Case matlab matlab language software written in
matlab language description:
programming language that calculus paper mode.
With this language, the user can use mathematical formulas in a manner similar to the preparation of the algorithm,
reduce the difficulty of programming required, saving time,
allowing the user to concentrate on the main idea of the algorithm rather than programming.
Program code:
source:
sum = 2;% initial value
for I = 1:10
sum = exp (sum);% exponential base e tired
end
Objective: 5 cycles sum value is
modified source program
sum = 2;% initial value
for I = 1:10
% addition section
IF I == 5
⚪ set breakpoint location disp ( 'cycles: 5'); any syntactically% code
End
%
SUM = exp (SUM );% exponential base e tired
end

解释: 利用if语句,
        条件判断设置为想要观察的某次循环内部代码运行情况

Guess you like

Origin www.cnblogs.com/WJWnature/p/11202080.html