Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local variables should not show in debugger if out of scope #19502

Open
dlangBugzillaToGithub opened this issue Nov 3, 2018 · 1 comment
Open

Comments

@dlangBugzillaToGithub
Copy link

Rainer Schuetze (@rainers) reported this on 2018-11-03T08:04:31Z

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

Description

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.
@dlangBugzillaToGithub
Copy link
Author

r.sagitario commented on 2018-11-03T08:07:24Z

On Windows, scope information is emitted only for variables with names that are declared more than once. This restriction reduces debug information, but might not  be worth the trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant