Results 1 to 7 of 7

Thread: QtCreator skips breakpoints

  1. #1

    Default QtCreator skips breakpoints

    I'm using Ubuntu 10.4 LTS with an updated Qt SDK. Build-essentials is the compiler suite.

    QtCreator's debugging worked fine on Win7, now it doesn't seem to work at all, the breakpoints are skipped altogether.

    I don't seem to get any particular error though.

  2. #2
    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: QtCreator skips breakpoints

    Are you building your code in debug mode?
    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.


  3. #3

    Default Re: QtCreator skips breakpoints

    Yes, I tryed both clicking the big Start Debugging button and the little one in the Debug section, neither works.

    I checked on WinXP 32bits SP3, the old QtCreator 2.2.1 works. Maybe it's a problem with the latest version.

    EDIT: gdb seems to work fine with NetBeans on the Ubuntu pc
    Last edited by The 11th plague of Egypt; 13th September 2011 at 12:08.

  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: QtCreator skips breakpoints

    I don't mean the debug mode of creator but rather that your application needs to be built in debug mode.
    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

    Default Re: QtCreator skips breakpoints

    I'm kinda new to debuggers. What do you mean by "build in debug mode"?

    Can't I simply push a button, like I do to build it normally?

  6. #6
    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: QtCreator skips breakpoints

    http://social.msdn.microsoft.com/For...7-8dfec18ff2e5

    If you use Qt Creator, you need to switch build configuration from release to debug. It's in the left pane about 2/3 way from the top.
    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.


  7. The following user says thank you to wysota for this useful post:

    The 11th plague of Egypt (14th September 2011)

  8. #7

    Default Re: QtCreator skips breakpoints

    Thank you, it works now. If you happen to have a quick guide to debugging I'll be happy to have a look.

    BTW I have character encoding broblems between the different platforms, how can I set QtCreator to save everything in UTF-8?

    EDIT: solved, for default is Tools/Options/Text Editor/Behaviour/Default Encoding
    for single files it's Place cursor inside open file -> Edit/Select Encoding

    IMHO the default encoding should be UTF-8.


    Added after 1 4 minutes:


    Damn, I just updated my windows version and now I have new problems!

    I'm creating a Qt Shell Application, but after the update, no shell shows up anymore!

    MinGW got updated in the process, but it seems I'm still using Qt 4.7.3.

    EDIT: solved, Projects/Run Settings/Run in terminal
    Last edited by The 11th plague of Egypt; 13th September 2011 at 16:55.

Similar Threads

  1. qt creator - breakpoints don't work
    By pmitas in forum Newbie
    Replies: 16
    Last Post: 8th September 2010, 11:53
  2. Breakpoints set at a slot will not stop?
    By MorrisLiang in forum Newbie
    Replies: 7
    Last Post: 19th May 2010, 17:18
  3. Qt Creator doesn't stop at breakpoints
    By TheSaw in forum Qt Tools
    Replies: 3
    Last Post: 12th May 2009, 16:53
  4. Replies: 0
    Last Post: 18th March 2009, 12:56
  5. KeyPressEvent behaves strange, skips the F key.
    By pir in forum Qt Programming
    Replies: 1
    Last Post: 18th August 2006, 18:07

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.