Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
Qt Creator 17.0.0
-
None
Description
Given the following code:
if (a == b || c == d) { // pause debugger here // ... }
while paused in the debugger at the if statement above, it is currently possible to inspect the value of a variable by hovering over it with the mouse. However, in the example above we may want to know which of the comparisons ("a == b" or "c == d") returns true. In order to do that, we must first select "a == b", right-click on it and select "Add Expression Evaluator" from the context menu, then do the same for "c == d". While this works, it's too cumbersome for a simple one-time inspection and needlessly pollutes the expression evaluator list with expressions that we don't need anymore. So we have to delete those manually afterwards.
Therefore, my suggestion is to make it possible to view the result of a selected expression by simply hovering over the selected text with the mouse. There is no need to add the selected expression to the expression evaluator when inspecting it this way. Obviously, hovering over a single variable that is outside of a selection should keep working the same way as before, showing us the value of that single variable.