QT_MESSAGELOGCONTEXT: more detailed qDebug()

Written by  on April 19, 2018 

Add to your environment:

Windows: set either via “set” or via RapidEnvironmentEditor.
In case of a no-debug-build, add QT_MESSAGELOGCONTEXT to DEFINES in the pro-file.

(Open question: if there are just mpc/vcxproj-files, then how to trigger?)

related sources:
* https://woboq.com/blog/nice-debug-output-with-qt.html
* https://fecub.wordpress.com/2015/11/04/better-debug-output-using-qt_message_pattern/
* http://doc.qt.io/qt-5/qmessagelogcontext.html#details

Category : C++QtVisualStudioWin


One Response

  1. […] could be immediately pinned. And you save writing always __FILE__ and __LINE__. Referres to this post. But the problem was that with the mpc-buildsystem it was unknown to me how to force it to put this […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.