[Issue 19349] New: local variables should not show in debugger if out of scope

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 3 08:04:31 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19349

          Issue ID: 19349
           Summary: local variables should not show in debugger if out of
                    scope
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: r.sagitario at gmx.de

from https://forum.dlang.org/thread/rolkovawfyldzeidxgtz@forum.dlang.org:

Debug variables are showing when not in scope. Is it possible to remove them?
They also show before they are actually defined in the source code.


int x = 0; < BP here, y and z are shown in the locals.

int y = 3;
{
   int z = 4;
}

// z is when when here.


One ends up with a huge list of variables of all the locals when they don't
even "exist". I'm using the Mago debugger.

--


More information about the Digitalmars-d-bugs mailing list