Bug 19318 – Variables captured from outer functions not visible in debugger
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2018-10-20T09:21:53Z
Last change time
2018-11-04T12:11:02Z
Keywords
pull, symdeb
Assigned to
No Owner
Creator
Rainer Schuetze
Comments
Comment #0 by r.sagitario — 2018-10-20T09:21:53Z
int fun() @nogc
{
int x;
auto foo() scope
{
int nested()
{
return x;
}
return nested();
}
return foo();
}
Variable 'x' is not visible in the debugger when stepping through 'foo' or 'nested'. Instead, only an opaque 'void* this' is shown.