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

Lambda definition causes tooltips for variable value to not show values.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • Qt Creator 15.0.0-beta1
    • Qt Creator 4.8.2
    • Debugger
    • I am using Ubuntu via Virtual Box.
    • Linux/X11

    Description

      Hi,

      It seems that lamba definition is causing tooltips with variable values to not be displayed correctly. Instead tooltip has only a caption which says "<value> (Previous)".

       

      Take a look at the below image:

       

       

      Now, I will rebuild the project with commented lambda definition:

       

       

      As you can see, value appears in the tooltip.

       

      Steps to reproduce:

       

      1. Create a new project "Plain C++ application".
      2. Copy and paste below code to main.cpp
      #include <iostream>
      #include <string>
      using namespace std;int main(int argc, char* argv[])
      {
        string my_string {"Hi I am string, sup?"};	// Comment below block of code and you will be able to see my_string value at line 16.
        auto callback = [](bool success)
        {	};	
        return 0; //Put a breakpoint here and check value of my_string.
      		//It does not show in tool tip if "auto callback" is compiled.
      }
      
      

      3. Put breakpoint on where "return 0" is then build&run project in debug mode.
      4. Check value of my_string by hovering mouse over it when program stops at the line.

      Attachments

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

        Activity

          People

            hjk hjk
            truewodzu Wodzu
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes