from https://forum.dlang.org/thread/[email protected]:
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.
Comment #1 by r.sagitario — 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.
Comment #2 by robert.schadek — 2024-12-13T19:01:09Z