Qt Creator Clang Code Model: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Created page with "Documentation: http://doc.qt.io/qtcreator/creator-clang-codemodel.html == Debugging == [http://doc.qt.io/qt-5/qloggingcategory.html QLoggingCategory] is used for debugging o...")
 
No edit summary
Line 5: Line 5:
[http://doc.qt.io/qt-5/qloggingcategory.html QLoggingCategory] is used for debugging output. Thus, a file qtlogging.ini with the contents
[http://doc.qt.io/qt-5/qloggingcategory.html QLoggingCategory] is used for debugging output. Thus, a file qtlogging.ini with the contents


  [Rules]
[Rules]
  qtc.clangcodemodel.ipc=true
qtc.clangcodemodel.ipc=true
  qtc.clangbackend.verboselib=true
qtc.clangbackend.verboselib=true
  qtc.clangbackend.parse=true
qtc.clangbackend.parse=true
  qtc.clangbackend.timers=true
qtc.clangbackend.timers=true


and the Qt Creator invocation
and the Qt Creator invocation


  Linux/Mac:
Linux/Mac:
  $ QT_LOGGING_CONF=/path/to/qtlogging.ini ./qtcreator
$ QT_LOGGING_CONF=/path/to/qtlogging.ini ./qtcreator


  Windows (start [https://technet.microsoft.com/en-us/sysinternals/debugview.aspx DebugView] in advance to see the output):
Windows (start [https://technet.microsoft.com/en-us/sysinternals/debugview.aspx DebugView] in advance to see the output):
  $ set QT_LOGGING_CONF=\path\to\qtlogging.ini
$ set QT_LOGGING_CONF=\path\to\qtlogging.ini
  $ qtcreator.exe
$ qtcreator.exe


will generate debugging output.
will generate debugging output.

Revision as of 15:44, 7 April 2016

Documentation: http://doc.qt.io/qtcreator/creator-clang-codemodel.html

Debugging

QLoggingCategory is used for debugging output. Thus, a file qtlogging.ini with the contents

[Rules]
qtc.clangcodemodel.ipc=true
qtc.clangbackend.verboselib=true
qtc.clangbackend.parse=true
qtc.clangbackend.timers=true

and the Qt Creator invocation

Linux/Mac:
$ QT_LOGGING_CONF=/path/to/qtlogging.ini ./qtcreator
Windows (start DebugView in advance to see the output):
$ set QT_LOGGING_CONF=\path\to\qtlogging.ini
$ qtcreator.exe

will generate debugging output.