Clear persistent variables in functions, keeping breakpoints
古いコメントを表示
I have a function, myfun.m, with some persistent variables inside. My main main.m file at the first line call:
clear variables; clear myfun; clc; close all;
The command clear my fun reset the persistent variables, but delete the breakpoints which I putted to debug my code.
How can I erase persistent variables, but not deleting the breakpoints?
回答 (1 件)
Walter Roberson
2016 年 6 月 2 日
b = dbstatus(); clear myfun; dbstop(b);
カテゴリ
ヘルプ センター および File Exchange で Debugging and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!