[Interest] debugging: how to get meaningful QObject information in a command line session

Thiago Macieira thiago.macieira at intel.com
Tue May 26 02:11:02 CEST 2015


On Monday 25 May 2015 23:18:17 René J.V. Bertin wrote:
> Hi,
> 
> Is it possible to get meaningful information for C++ objects that are Qt
> class instances while debugging in a command line (terminal) session
> instead of using Qt Creator? If so, how?
> 
> Not that I don't like graphical debugger interfaces, and not that I think
> that the one in Qt Creator is a lost cause, but it's neigh unusable with
> lldb (I couldn't even make out the difference between a crash/exception and
> a triggered breakpoint earlier today).

Make the debugger call the QObject::dumpObjectInfo() and 
QObject::dumpObjectTree() in the objects you want to get information from.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list