Results 1 to 4 of 4

Thread: Qt and debugg... How to set ?

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt and debugg... How to set ?

    I don understand the settings I have to do in order to debugg using QT + Mingw.
    At the debugger tabs I have only GDB.exe location.
    I dont know (and dont understand nothing ....) what more I have to do ....
    I can debugg, but I have the impression that it is tremendous slow...
    Any tutorial to set up this ? Any link? any help ?
    Thanks

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt and debugg... How to set ?

    You don't have to change anything with the out-of-the-box Qt SDK to have a working debugger.
    • Open your project in Qt Creator.
    • Press F5
    • or click the Start Debugging button (lower left)
    • or select Start Debugging for the Debug menu.

    Doesn't get much easier than that. The project will be built in debug mode and run in the debugger. Running in a debugger is always slower than running release code. The code itself is much larger and the debugger has to keep track of things as they happen.

    You can adjust the definition of the release and debug, build and run settings from the Project panel (left toolbar).

  3. #3
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt and debugg... How to set ?

    But ..... I have the impression that it is too slow....
    Any idea to improve it ? (I have mingw)

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt and debugg... How to set ?

    Ultimately, the program runs as fast as the program runs. The debugger adds some overhead that is being used to buy the ability to stop the program at will, on a certain line, when a certain condition is met, or when it crashes and tell you something useful about the state of things. There are some things that can be done regarding speed of access to symbol files in section 18 of the manual
    http://www.scribd.com/doc/50108779/7...s-Speed-Up-gdb

    In general I have found the entire MingW suite on Windows to be very slow compared to the equivalent GNU tools on Linux.

    You could switch to the Microsoft compiler and debugger for a different perspective.

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.