[Qt-interest] NewBie: How to trace Segmentation Fault in Qt?
Karol Krizka
kkrizka at gmail.com
Mon Jul 20 07:42:26 CEST 2009
On Mon, 2009-07-20 at 10:26 +0500, Usman Ajmal wrote:
> Hi,
>
> I don't have any experience of working with any debugger on Linux and
> Qt. That's because i am a begineer in these fields.
>
> Having said that, i am now facing a Segmentation Fault when i run my
> Qt application. Please suggest me ways to trace it, and an
> easy-to-learn to learn tutorial for debugging C++ code on linux while
> developoing a Qt app.
>
What IDE are you using to develop your application?
I would recommend that you try Qt Creator. It has a very nice debugging
environment that is friendly to new users. Just hit the debug button,
crash your application and it will show you the line in the code where
it crashed.
If you are working from command line, you will probably have to use GDB.
But I don't know about any good tutorials for it.
Cheers,
Karol Krizka
More information about the Qt-interest-old
mailing list