Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED] Viewing debug output for QML imports, VS2008?
frankiefrank last edited by
I see in the documentation that I should use the environment variable QML_IMPORT_TRACE=1 to get debug information.
My application loads a QML scene into a QDeclarativeView.
Though I set the variable (with a qputenv call), and though I'm compiling in debug, I don't see any of the expected log messages in my output window. Is there something I'm doing wrong?
Thanks in advance, for any help,
Update: I managed to get the debug information, I had to move the qputenv call to the constructor before accessing any of my QML related objects. This is though in my app I have later points where I set the objects to null and re-initialize them. For some reason, the environment setting wouldn't actually cause debug info to be issued, unless I set it before any access to these objects.