How to enable viewing workspace variables when hovering

This used to be a feature, but now I'm not seeing it in 2025b. When I am stopped and debugging code, I can hover my cursor over a variable and it will display a pop-up with the value of the variable. It also used to do this when not in debug mode if the variable name matched one in the current workspace, but it does not do this anymore. I found this useful when working on a script that operates in the base workspace. Is there a way to re-enable this functionality?

2 Commenti

helllo
hopefully this is still valid for 2025b :
You'll find the option in your preferences, Editor/Debugger subgroup, then Display.
The option is called "Enable datatips in edit mode"
That's great. I never knew about this preference setting.

Accedi per commentare.

Risposte (2)

Deepak
Deepak il 23 Giu 2026 alle 9:48
Hi David,
I understand that you are trying to view variable values by hovering over them in the editor (even outside debug mode), which used to work earlier but is not visible in MATLAB R2025b.
To answer your question, in MATLAB R2025a/b the hover display of variable values outside debug mode (for example, from the base workspace) is not supported in the new desktop. Hover-based value inspection is now limited to debugging contexts, and there is no setting to restore the earlier behavior.
You can enable editor datatips using: Go to Preferences → MATLAB → Editor/Debugger → Display
Enable “Enable datatips in edit mode”
This enables hover tooltips where supported (primarily during debugging).
Hope this helps.
Matt J
Matt J il 23 Giu 2026 alle 16:11
Modificato: Matt J il 23 Giu 2026 alle 18:14
If you upgrade to R2026a, you can recover the capability of viewing variable content in edit mode (in addition to debug mode). As the others have said, you must enable the setting "Enable datatips in edit mode”.
In 2025b, the datatip is unresponsive to this setting. However, in 2026a, the capability appears to have been restored.

Categorie

Scopri di più su Scripts in Centro assistenza e File Exchange

Prodotti

Release

R2025b

Richiesto:

il 18 Giu 2026 alle 13:43

Modificato:

il 23 Giu 2026 alle 18:14

Community Treasure Hunt

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

Start Hunting!

Translated by