
When debugging in R2021b, the current line is highlighted in light green making it impossible to read the line when the text color is light and background is dark.
60 views (last 30 days)
Show older comments
This happens only when the function being viewed is above in the call-stack from the one at which execution has stopped.

Any idea how this color might be changed?
EDIT:
See below an example showing how to reproduce this problem, this time with the default colors:

6 Comments
Accepted Answer
Rik
on 24 Mar 2022
The line highlight has been changed to a much darker shade of green in R2022a. This leaves code readible if you have set your font color to something light.
So there isn't a solution in R2021b, but R2022a will get you what you need.
More Answers (1)
dpb
on 2 Dec 2021
Under preferences, "Editor/Debugger" the checkbox "Highlight Current Line" has the option to select the highlight color.
8 Comments
Andrea De Polis
on 16 Feb 2022
I do have the same, very annoying issue. I can see the highlighted lines only by highlighing them with the cursor.

See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!