Visual D does not show fields in locals and cannot access through watch
Rainer Schuetze via Digitalmars-d-ide
digitalmars-d-ide at puremagic.com
Thu Jul 14 23:33:54 PDT 2016
On 15.07.2016 02:53, Eppason wrote:
> I have private static fields that visual D is not allowing me to see
> while debugging. I am flying blind, does not feel good!!
You have to specify the fully qualified name including module name in
the watch window, i.e.
module test;
struct S
{
int foo()
{
return xyz;
}
static int xyz = 7;
}
int main()
{
S s;
return s.foo();
}
Depending on the debug engine used, watching S.xyz needs "test.S.xyz" in
mago and "test at S@xyz" with the VS engines. Mago has some extra code to
allow watching "xyz" when executing S.foo.
More information about the Digitalmars-d-ide
mailing list