[Issue 12899] New: slices don't work in memory window
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jun 12 07:51:00 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12899
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 at puremagic.com
Reporter: turkeyman at 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.
--
More information about the Digitalmars-d-bugs
mailing list