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!