What happened to the "Run to cursor" button in R2021b?
48 views (last 30 days)
Show older comments
MathWorks Support Team
on 26 Oct 2021
Edited: MathWorks Support Team
on 26 Oct 2021
What happened to the "Run to cursor" button in R2021b? I cannot find it in the MATLAB Editor tab anymore.
Accepted Answer
MathWorks Support Team
on 26 Oct 2021
Edited: MathWorks Support Team
on 26 Oct 2021
The "Run to cursor" button was removed in R2021b.
Starting in R2021b, a Continue to Here button shows up to the left of the code folding margin when you are stopped at a breakpoint in a script, function, or class file:
In addition to the button, there is also a context menu item when right-clicking on a line number in the margin which should also be available under the same circumstances:
There is also a new Run to Here feature that will allow you to run the code to a specific line and pause in scripts, even when not in debugging mode:
Again, there is a corresponding context menu item when right-clicking on a line number in the margin:
Note that "Run to Here" is only available in scripts, not in function/class files.
Refer to the following documentation page to learn more about debugging MATLAB code files:https://www.mathworks.com/help/matlab/matlab_prog/debugging-process-and-features.html
0 Comments
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!