Tooltip which shows variable value during debugging no longer hides automatically after variable loses focus #8961
+10
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tooltip which shows variable value during debugging no longer hides automatically after variable loses focus
When you are in debug mode and want to see value for some variable you can find this in "variables" view. Alternatively you can hover over a variable and tooltip is displayed. Which is more convenient for some quick checks. However, if the variable is not of primitive type you need to click "expand" icon in tooltip to see any data. For example, if you variable is instance of a class - you will see has code in popup and to see any property defined for this class instance you need to click that expand icon.
Unfortunately in NetBeans sometimes it is quite tricky to put your mouse into popup before it is automatically closed. This popup is automatically closed when variable for which it is display looses focus. See attached video.
https://github.com/user-attachments/assets/ef11db79-794b-4788-bc75-7c9cb03cfa3f
Sometimes this behavior is really annoying because you can't catch popup before it is closed.
This change makes popup "heavy" or "sticky" so it does not close automatically depending on focus or mouse movement. There are two ways to close it:
As for me this behavior is much more convenient. I've checked idea ide - and they have very similar behavior.
Also this behavior is aligned with other "mode" of this popup - when you expend popup to see details - there is popup window which also does not close depending on focus or mouse movement - but closes if you "click outside" or press "esc".
Video with behavior after the change:
https://github.com/user-attachments/assets/185b0ca7-9356-4a9e-baee-377883d82844
So as for me this is a good change - imho it makes this functionality more convenient to use and it makes it consistent with other "mode" for same popup.