Stepping back while debugging

조회 수: 3 (최근 30일)
Raghu Piska
Raghu Piska 2016년 9월 19일
댓글: Raghu Piska 2016년 9월 20일
I have a matlab function which has several matlab sub functions in it. While debugging the function I accidentally passed one sub function. Now I want to go back one step and "step in" that sub function. How can I do that?
  댓글 수: 2
per isakson
per isakson 2016년 9월 19일
편집: per isakson 2016년 9월 19일
Not possible, however there is a work around:
  1. set a break point in the beginning of the code of one_sub_function
  2. select the call of one_sub_function, which you just passed.
  3. right click and choose Evaluate Selection
Raghu Piska
Raghu Piska 2016년 9월 20일
Thanks for your answer.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2016년 9월 19일
There is no "edit and continue" or ability to move the next execution line in MATLAB, unfortunately, like there is in Microsoft Visual Studio.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by