http://d.puremagic.com/issues/show_bug.cgi?id=3657

           Summary: No lexical scope for local variables in debug info
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: r.sagita...@gmx.de


--- Comment #0 from Rainer Schuetze <r.sagita...@gmx.de> 2009-12-29 02:47:59 
PST ---
Consider

import std.stdio;

void main()
{
   for(int i = 0; i < 10; i++)
      writefln("1 - %d", i);

   for(int i = 0; i < 10; i++)
      writefln("2 - %d", i);
}

This declares two different variables "i", but the debugger only shows the
value of the first variable, even while stepping through the second loop. (The
list of local variables does show two variables "i".)

This is caused by DMD not emitting any life time info of local variables.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to