Results 1 to 6 of 6

Thread: Avoiding stepping into qt source files while debugging

  1. #1
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Avoiding stepping into qt source files while debugging

    How can I avoid stepping into qt source files while debugging qt app?
    I'm using both gcc and vc++ on windows.

  2. #2
    Join Date
    Mar 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Avoiding stepping into qt source files while debugging

    Read up on Step Over versus Step Into. That may be what you're looking for if I understand the question correctly. In ddd and Qt Creator they're F10 and F11 respectively.

  3. #3
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Avoiding stepping into qt source files while debugging

    Read up on Step Over versus Step Into.
    The point in not _manually_ avoiding stepping into source files you don't want to step into but to have it _automatically_ done.

  4. #4
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Avoiding stepping into qt source files while debugging

    Quote Originally Posted by piotr.dobrogost View Post
    The point in not _manually_ avoiding stepping into source files you don't want to step into but to have it _automatically_ done.
    You mean, that when your app crash under debugger than the first opened file showing the place of line causing the crash is somewhere in Qt sources?
    Than it is difficult to avoid it :] first thing is to use the stack trace to find the last place in your sources which caused error and just go to that stack frame.

    And some trick would be to compile Qt only in release mode so debugger won't have access to Qt sources :]
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  5. #5
    Join Date
    May 2009
    Posts
    133
    Thanks
    10
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Avoiding stepping into qt source files while debugging

    Quote Originally Posted by faldżip View Post
    You mean, that when your app crash under debugger than the first opened file showing the place of line causing the crash is somewhere in Qt sources?
    No. I mean no matter if I step into or step over debugger skips all statements from qt source files to the next statement from my own code.

  6. #6
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Avoiding stepping into qt source files while debugging


Similar Threads

  1. Access UI Components from different source files
    By cevou in forum Qt Programming
    Replies: 3
    Last Post: 13th February 2009, 23:44
  2. Avoiding unnecessary files and folder in Impelementation
    By salmanmanekia in forum Qt Programming
    Replies: 2
    Last Post: 30th May 2008, 14:54
  3. Program crashes with assert error in xcb_lock.c
    By Valheru in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 19:56
  4. KDE 3.5.0 crash while opening project
    By MarkoSan in forum KDE Forum
    Replies: 2
    Last Post: 19th October 2007, 16:21
  5. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13

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.