dbstop if error

 

Matlab 调试工具 dbstop 的使用_Man-CSDN博客

 

% 遇到错误时,终止M文件运行,并停在错误行(不包括try...catch语句中检测到的的错误,不能在错误后重新开始运行)
dbstop if error

% 遇到任何类型错误均停止(包括try...catch语句中检测到的的错误) 
dbstop if all error

 

% 清除所有M文件中的所有断点
dbclear all

 

posted @ 2021-08-23 20:52  xdd1997  阅读(257)  评论(0编辑  收藏  举报