[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-dev] Debugging Text Hover in CDT.
|
Hi,
I am trying to investigate how hover works in CDT debug mode.
When I hover over struct variable it gives field details as follows
currentdate = {day = 10, month = 11, year = 2005}
Whereas hovering over the struct fields, doesn't display its value.
Message displayed at console is : 'No symbol "day" in current
context'.
I went through the CDT code, the "DebugTextHover.java" takes only the
"fieldname" and not the "structure_variable.fieldname" to get the value.
(offset and length passed might be incorrect)
For Eg: Line No. 64 -> String expression = document.get(
hoverRegion.getOffset(), hoverRegion.getLength() );
This returns "day" instead it should have been "currentdate.day".
Is this an expected behaviour,a known issue or an unknown bug. Please
help!
Thanks & Regards,
Anita Birje
P.S. The program used for testing this functionality:
//**********************************************************************
*****************
struct date
{
int day;
int month;
int year;
};
#include <stdio.h>
int main()
{
struct date currentdate = {10,11,2005};
cout<<"\n\nPrinting day : "<<currentdate.day<<endl
<<"Printing month : "<<currentdate.month<<endl
<<"Printing year : "<<currentdate.year<<endl<<endl;
return 0;
}
//**********************************************************************
******************