A question about MATLAB debugging
2 ビュー (過去 30 日間)
古いコメントを表示
I have a program which needs to run quite a while. There is an error in the subfunction, I want to check the error by looking the variables,but only the variables of the subfunction are displayed when I use the command {dbstop if error}. Is there anyone who can show me how to display the variables of the main function? Thank you!
0 件のコメント
回答 (2 件)
Walter Roberson
2012 年 11 月 24 日
The workspace browser has a context selector.
Or you can use "dbup" and "dbdown" to move between contexts.
0 件のコメント
Jan
2012 年 11 月 25 日
The functions dbup and dbdown are performed also by the popup menu "Stack: ..." in the editors toolbar. This popup changes the current workspace to the caller, the caller's caller etc, such that a fast navigation is easy.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Debugging and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!