Bug 18889 – Hovering over the alias of an enum doesn't show it's value
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2018-05-21T03:11:30Z
Last change time
2019-05-11T15:45:36Z
Assigned to
No Owner
Creator
Manu
Comments
Comment #0 by turkeyman — 2018-05-21T03:11:30Z
-----------------------------
enum ENUMTY : int
{
Tstruct = 8
}
alias Tstruct = ENUMTY.Tstruct;
void main()
{
ENUMTY x;
if (x == Tstruct) // PUT BREAKPOINT HERE
return;
return;
}
------------------------------
place a breakpoint at that line... if you hover over Tstruct, it would be really nice to see the value (ie, 8).
Comment #1 by r.sagitario — 2018-11-24T14:26:13Z
When not debugging, the tooltip can now show the value if enabled on the Intellisense options page.
Unfortunately, these tooltips have to be blocked to let the debugger show data value tool tips.
Comment #2 by turkeyman — 2018-11-24T20:56:40Z
Awesome. Tested, working in editor.
Does the debuginfo support populating those identifiers with values such that the debugger is able to show them when displaying value data the usual way?
Comment #3 by r.sagitario — 2018-12-26T10:07:09Z
I have now added that with semantic highlighting enabled, tooltip requests are no longer forwarded to the debugger if hovering a compile time identifier (type/enum), thus showing the tooltip of the semenatic analyzer.
That should help in most cases, even without appropriate debug information. Aliases as in your example are never anything that the debugger knows about anyway, they don't make it into the compiler backend.