[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Debugging Text Hover in CDT.
|
This is a known issue. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=40101.
The expression selected in the editor has to be parsed to avoid expressions
like "++i". Currently we don't use parser for filtering.
----- Original Message -----
From: "Birje, Anita (STSD)" <anita.birje@xxxxxx>
To: <cdt-dev@xxxxxxxxxxx>
Sent: Thursday, November 10, 2005 9:37 AM
Subject: [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;
}
//**********************************************************************
******************
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev