How to view enum names in Creator debugger?
-
wrote on 3 Oct 2018, 02:27 last edited by
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?
-
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?
hi @rosetter,
as I wrote in the report, only CDB was affected, GDB worked fine. Which debugger do you use?
if the minimal example from the bugreport still fails for you, we could reopen the bug.
-
wrote on 4 Oct 2018, 03:03 last edited by
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..
-
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
1/5