How to view enum names in Creator debugger?
-
Hi, the debugger view in Creator only shows integer values for enums instead of the names.
For example, if I break in a function with:
enum Fruit { Apple, Orange } fruit; fruit = Orange;
The Locals view shows a value of "1" instead of "Orange".
I'm using Creator 4.7.1, Qt 5.11.1 on a Mac (High Sierra).
Is there some new setting that I'm missing?
This looks like bug 20934 but that is marked as fixed in this version of Creator.
Any suggestions?
-
Oops, I forgot to say that I'm using lldb.
It does fail.. I'll attach a screenshot.
In the debugger log you can see the verison of lldb (900.0.64), the values of e and f are "2" in the Locals view, but "frame variable" entered manually in the debugger console shows the expected value of "c".
My guess would be an incompatibility with the latest Xcode tools..
-
Hi @rosetter,
probably best would be to create a new bugreport, as your output looks a bit different from QTCREATORBUG-20934.
In principle attach the same information you showed here.
PS: please add a link to the new report here. Thanks!
-
@rosetter The bug report is QTCREATORBUG-21258