Stepping back while debugging

2 Ansichten (letzte 30 Tage)
Raghu Piska
Raghu Piska am 19 Sep. 2016
Kommentiert: Raghu Piska am 20 Sep. 2016
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 Kommentare
per isakson
per isakson am 19 Sep. 2016
Bearbeitet: per isakson am 19 Sep. 2016
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 am 20 Sep. 2016
Thanks for your answer.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by