Details
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:
- Create a new project "Plain C++ application".
- 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.