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

Tooltip for variable not working in debugger, when using c++ lambda function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • Qt Creator 13.0.0-beta1
    • Qt Creator 4.12.1, Qt Creator 4.13.1, Qt Creator 4.14.0
    • Debugger
    • I use a Linux cross compilation toolchain created by yocto 2.7.1 for an i.MX7.
      QtCreator runs in a debian 10 docker container.

    Description

      Hello,

      when debugging C++ member functions, variables that stand before a lambda function, tooltips do not work. I attached an example project.

      Commenting the lamba function out, the tooltips for the variables work again.

      • Global and member variables show "No valid expression",
      • local variables show an empty tooltip
      • In the "Locals-Window", all variables are shown correctly at any time

      Variables that stand after the lamda can be "tool-tipped" without a problem,

      As we use many lambda functions in our C++ project, this makes debugging much harder.

       

      The general usage of tooltips was improved by much in this task: QTCREATORBUG-19574 

       

      Attachments

        Issue Links

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

          Activity

            People

              hjk hjk
              reinerhohn reinerhohn
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes