[Issue 3657] New: No lexical scope for local variables in debug info
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 29 02:48:00 PST 2009
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: nobody at puremagic.com
ReportedBy: r.sagitario at gmx.de
--- Comment #0 from Rainer Schuetze <r.sagitario at 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: -------
More information about the Digitalmars-d-bugs
mailing list