Results 1 to 2 of 2

Thread: debug problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2007
    Posts
    2

    Default debug problem

    Hi All~~, I am a new guy to the qt library . and I met a tiny problem when i used qt-x11-opensource-4.2.0. I set breakpoints in kdevelop,but those seem didn't work. then i turn to examples and found that there was a *.debug file right beside the execute file.So how to generate the debug file.

  2. #2
    Join Date
    Jan 2006
    Posts
    128
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: debug problem

    Well, you should not need to generate the .debug file, as it is basically an optimization. Normally all information needed for debugging, if compiled for debugging, is embedded to the executable. Qt uses the fact that you can split the debug information in its own file, so that you do not have to load it if you do not need to debug. (The debugger, probably gdb, should find the .debug automatically in this case)


    Now, after we established that your problem is probably not the missing ".debug" files, it (sadly) could be a lot of things.

    Sadly I do not have much experience with kdevelop.

    Where did you try to set the breakpoints?
    Is your project compiled to allow debugging?
    Have you tried it using gdb directly?
    Try:
    Qt Code:
    1. gdb ./executable
    2. break filename:linenum
    3. run
    To copy to clipboard, switch view to plain text mode 

    Does it give you any error messages?
    Last edited by camel; 8th January 2007 at 08:55. Reason: spelling error

Similar Threads

  1. QTimer problem ... it runs but never triggs
    By yellowmat in forum Newbie
    Replies: 4
    Last Post: 4th July 2006, 12:54
  2. Problem with Debug mode in KDevelop
    By zlatko in forum KDE Forum
    Replies: 1
    Last Post: 16th June 2006, 09:10
  3. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 14:08
  4. Replies: 11
    Last Post: 22nd March 2006, 19:06
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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
  •  
Qt is a trademark of The Qt Company.