Thread overview
[Issue 4898] New: Can't see parent function's variables from nested functions when debugging
Sep 19, 2010
Aldo Nunez
Sep 21, 2010
Aldo Nunez
September 19, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4898

           Summary: Can't see parent function's variables from nested
                    functions when debugging
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: aldonunez1@gmail.com


--- Comment #0 from Aldo Nunez <aldonunez1@gmail.com> 2010-09-19 14:24:58 PDT ---
The debug info for a nested function has an entry for a "this" variable which points to the variables in the parent function that the nested function can use. The type of that variable is void*.

If it were a kind of struct, then we could see those dependent variables. This is particularly useful for closures where the user can't look at the enclosing function's frame directly.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 20, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4898


bearophile_hugs@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs@eml.cc


--- Comment #1 from bearophile_hugs@eml.cc 2010-09-19 18:02:23 PDT ---
Is this an enhancement request?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 21, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4898


Aldo Nunez <aldonunez1@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


--- Comment #2 from Aldo Nunez <aldonunez1@gmail.com> 2010-09-20 21:03:48 PDT ---
I guess it would be an enhancement. I updated the bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------