[Qt-interest] Problems debugging with Qt Creator

Vyacheslav V. Yurkov uvv.mail at gmail.com
Fri Oct 22 08:46:31 CEST 2010


Davide wrote:
> Hello everybody,
> I'm using Qt Creator 2.0 with Qt 4.6.3 to develop a C++ program that
> is composed of both classes that do inherit from Qt and classes that
> don't.
> I noticed that the debug works fine when I put a breakpoint in one of
> the classes that inherit from Qt but if I do the same with the other
> classes the debugger doesn't work very well. For example the "Locals
> and Whatchers" tab is empty and there is no way to verify variables
> values.
>
> Is this the standard behavior of Qt Creator or am I doing something wrong?
>
> Thanks
>   
Hi David,
To debug classes, which are not a part of Qt project, you must ensure that
they are built with debugging support, e.g. passing option -g to the gcc.

-- 
Yours sincerely,
Vyacheslav V. Yurkov




More information about the Qt-interest-old mailing list