Bug 19349 – local variables should not show in debugger if out of scope

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2018-11-03T08:04:31Z
Last change time
2024-12-13T19:01:09Z
Keywords
DebugInfo
Assigned to
No Owner
Creator
Rainer Schuetze
Moved to GitHub: dmd#19502 →

Comments

Comment #0 by r.sagitario — 2018-11-03T08:04:31Z
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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19502 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB