Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Qt Creator 4.7.0 和 Qt 5.9.2 LTS。有没有一种简单的方法可以让调试器(GDB或CDB)知道您自己的enum类型,而无需创建自定义调试帮助器(例如,使用类似 may 的宏Q_MAKE_DEBUGGING_AWARE?
enum
Q_MAKE_DEBUGGING_AWARE
到目前为止,这些自定义枚举值仅显示“ xyz类型的值”。
在 Qt Creator 4.7.0 之前它运行良好。我发现取消选中Tools > Options > Debugger > CDB > Use Python dumper可以解决这个问题,并且我的所有枚举都在所有调试器输出窗口中正确显示。