Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33145

Make it possible to evaluate a selected expression without adding it to the expression evaluator list

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 17.0.0
    • Debugger
    • None
    • All

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            crolix Andy Romanov
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes