Break a code in intermediate function
显示 更早的评论
Hi, I am trying to break a code in an intermediate function of the whole procedure I am running. For example, I run "my_script.m" which calls an intermediate function "my_function.m". I would like to break/pause the code at line 15 of "my_function.m". It is basic programming feature, but (surprsingly) couldnt do it or find quick instructions in the internet. I am grateful for any help. Thanks.
采纳的回答
更多回答(1 个)
Sean de Wolski
2015-1-24
编辑:Sean de Wolski
2015-1-26
>>dbstop in my_function at 15
Or click the - next to the line number in the editor. Doc:
>>web(fullfile(docroot, 'matlab/matlab_prog/debugging-process-and-features.html'))
3 个评论
Marcelo Sena
2015-1-24
Marcelo Sena
2015-1-24
Sean de Wolski
2015-1-26
Just run the above at the command line.
类别
在 帮助中心 和 File Exchange 中查找有关 Debugging and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!