digitalmars.D.bugs - [Issue 19957] New: Problem debugging associative arrays
- d-bugmail puremagic.com (42/42) Jun 13 2019 https://issues.dlang.org/show_bug.cgi?id=19957
https://issues.dlang.org/show_bug.cgi?id=19957 Issue ID: 19957 Summary: Problem debugging associative arrays Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression Priority: P1 Component: visuald Assignee: nobody puremagic.com Reporter: thomas.hedstrom mail.com Some array constructs do not work correctly in the debugger. Mago used VisualD 0.50.0-beta2 VS2017 15.9.13 1. In the following code, watch on "data" fails in x64 LDC debug. module main; import std.stdio; alias retData = ubyte[uint][2]; int main(string[] argv) { retData b,a; b[1][27] = 123; a = test(); writeln(a,b); // break 2 return 0; } retData test() { retData data; data[1][27] = 123; writeln(data); return data; // break 1 } 2. Reducing the type/assignments for: alias retData = ubyte[uint] This makes "data" watchable, but now "a" no longer works in LDC x64 or x86. Not sure but I think problem 1 was ok/better in 0.49. Might be LDC debug info problem but in actual code where I use a more complex array type, both LDC and DMD x64 have problem but not any x86. --
Jun 13 2019