Results 1 to 2 of 2

Thread: Is there any way to improve debuging?

  1. #1
    Join Date
    Jul 2009
    Posts
    21
    Thanks
    1

    Default Is there any way to improve debuging?

    Hello everybody.

    I would like to know - is there any way to improve debuging - what I mean is: if I have a QTcpSocket object or QImage object or any other QT object I usually can't see any properties, just a pointer, for example:

    debug.png

    As you can see, for QTcpSocket - I can only "debug" the pointer, while I can expand "this", and see it's properties. I would like to do the same with QTcpSocket to - for example - see if "hasPendingConnections()" returns true. Is it possible or is it a limitation of GDB/QT/C++ ?

    Thanks in advance.

  2. #2
    Join Date
    May 2008
    Posts
    155
    Thanked 15 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Is there any way to improve debuging?

    You see already "special" display, see the QString and the QStringList: This shows the QString contents, not the d pointer. If you don't see the QObject property it means you are probably using a non-debug build of the Qt libraries. With a debug build you should get the object name and properties.

Similar Threads

  1. debuging
    By Maluko_Da_Tola in forum Newbie
    Replies: 0
    Last Post: 23rd August 2010, 22:49
  2. Debuging with Visual C++ 6.0
    By joecole in forum Newbie
    Replies: 1
    Last Post: 16th February 2009, 21:13
  3. debuging problem
    By knut in forum Installation and Deployment
    Replies: 0
    Last Post: 15th December 2008, 12:32
  4. debuging problem
    By Ghost in forum Installation and Deployment
    Replies: 2
    Last Post: 6th November 2008, 09:53
  5. Debuging Qt4 in VS2005
    By derick in forum Qt Programming
    Replies: 6
    Last Post: 20th August 2006, 21:55

Tags for this Thread

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.