Results 1 to 5 of 5

Thread: Need some debugging tips for Qt

  1. #1
    Join Date
    Oct 2007
    Location
    India
    Posts
    162
    Thanks
    20
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Need some debugging tips for Qt

    I have used GDB for debugging C programs.
    What's the best way to debug a Qt program? I think i need to compile my application using the -g option for debugging.

    Should i use gdb or a graphical tool like kdbg, ddd? There are also IDEs like QDevelop and KDevelop, so which one to use.

  2. #2
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: Need some debugging tips for Qt

    Here is some but doesn't apply to GDB http://doc.trolltech.com/4.5/debug.html
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

  3. #3
    Join Date
    Oct 2007
    Location
    India
    Posts
    162
    Thanks
    20
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Need some debugging tips for Qt

    These are the basic things which i already know. I want to know which tool/IDE is the best for debugging.
    Last edited by montylee; 17th March 2009 at 00:51.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Need some debugging tips for Qt

    Use the one tool that you use for development - KDevelop, Visual Studio, Eclipse, Qt Creator... Alternatively use kgdb or directly gdb itself (which is often the best choice). The frontend doesn't really matter. What matters is your knowledge about debugging and using the backend tool properly.
    Last edited by wysota; 17th March 2009 at 01:10.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Oct 2007
    Location
    India
    Posts
    162
    Thanks
    20
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Need some debugging tips for Qt

    ya, i also felt the same after creating this thread.
    I am using QDevelop for now as i have used it before too. Along with that i can now use gprof too

Similar Threads

  1. ide which supports debugging qt4.3.3 in windows
    By sakthi in forum Qt-based Software
    Replies: 2
    Last Post: 28th January 2008, 12:36
  2. Program crashes with assert error in xcb_lock.c
    By Valheru in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 19:56
  3. KDE 3.5.0 crash while opening project
    By MarkoSan in forum KDE Forum
    Replies: 2
    Last Post: 19th October 2007, 16:21
  4. Debugging with gdb
    By SteM in forum Newbie
    Replies: 4
    Last Post: 9th August 2007, 14:40
  5. Debugging
    By Voldemort in forum Qt Programming
    Replies: 13
    Last Post: 14th May 2007, 20:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.