Bug 16691 – New debug experience: hovering over a string function argument doesn't display the string
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2016-11-16T03:20:00Z
Last change time
2017-03-22T12:21:10Z
Keywords
pull
Assigned to
nobody
Creator
turkeyman
Comments
Comment #0 by turkeyman — 2016-11-16T03:20:15Z
string f(string s)
{
return s;
}
Put a breakpoint at "return s;", hover the mouse over 's', you'll see a pointer appear which you need to expand to see the string.
It would be best if hovering over a string showed the string directly.
Comment #1 by r.sagitario — 2017-01-14T09:33:29Z
This happens because the string is passed by reference by the x64 ABI. If you build for the VS engine, it is encoded as "reference" and it works as expected.
The pointer type is used for historic reasons when building for D engines. Unfortunately, switching to VS style uses the ugly '@' replacement for types.
Comment #2 by turkeyman — 2017-01-14T10:57:23Z
Is there a solution possible that isn't broken one way or another?