www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12899] New: slices don't work in memory window


          Issue ID: 12899
           Summary: slices don't work in memory window
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: VisualD
          Assignee: nobody puremagic.com
          Reporter: turkeyman gmail.com

In VS, Debug->Windows->Memory shows a memory view. Usually you can paste
pointers in the address box and view the memory at that pointer.
This doesn't work for slices. Instead, it shows the memory of the slice
structure itself, not what it points to.

Additionally, mySlice.ptr doesn't work in the debugger either. I can't work out
how to get the pointer from a slice in expression evaluation.

Slices appear as a struct with a single 'length' element, which you can view by
pressing the '+' (expand) button next to the slice. But the expression
mySlice.length doesn't work either.

Jun 12 2014